diff --git a/scripts/restore.sh b/scripts/restore.sh index 66b9f592..355ee9a5 100755 --- a/scripts/restore.sh +++ b/scripts/restore.sh @@ -100,7 +100,11 @@ 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" "-l $default_shell")" + local opt="" + if [ "$(basename "$default_shell")" == "bash" ]; then + opt="-l " + fi + export TMUX_DEFAULT_COMMAND="$(get_tmux_option "default-command" "$opt$default_shell")" } tmux_default_command() {