We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c66b791 commit 1160c1dCopy full SHA for 1160c1d
scripts/restore.sh
@@ -100,7 +100,11 @@ tmux_socket() {
100
# tmux server each time.
101
cache_tmux_default_command() {
102
local default_shell="$(get_tmux_option "default-shell" "")"
103
- export TMUX_DEFAULT_COMMAND="$(get_tmux_option "default-command" "-l $default_shell")"
+ local opt=""
104
+ if [ "$(basename "$default_shell")" == "bash" ]; then
105
+ opt="-l "
106
+ fi
107
+ export TMUX_DEFAULT_COMMAND="$(get_tmux_option "default-command" "$opt$default_shell")"
108
}
109
110
tmux_default_command() {
0 commit comments