mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-22 04:18:48 +00:00
Fix #94 start default-shell as login shell.
If pane content is restored and no default-command is set, restore.sh falls back to default-shell, which tmux sets automatically and calls as a login shell. In pane_creation_command() we need to make sure to call default-shell as a login shell. As tmux does. But take care not to call default-command as a login shell.
This commit is contained in:
parent
b020b2481e
commit
9187f8b377
@ -100,7 +100,7 @@ tmux_socket() {
|
||||
# tmux server each time.
|
||||
cache_tmux_default_command() {
|
||||
local default_shell="$(get_tmux_option "default-shell" "")"
|
||||
export TMUX_DEFAULT_COMMAND="$(get_tmux_option "default-command" "$default_shell")"
|
||||
export TMUX_DEFAULT_COMMAND="$(get_tmux_option "default-command" "-l $default_shell")"
|
||||
}
|
||||
|
||||
tmux_default_command() {
|
||||
|
Loading…
Reference in New Issue
Block a user