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 cff343c commit 009a2a5Copy full SHA for 009a2a5
scripts/restore.sh
@@ -109,8 +109,9 @@ tmux_socket() {
109
cache_tmux_default_command() {
110
local default_shell="$(get_tmux_option "default-shell" "")"
111
local opt=""
112
- if [ "$(basename "$default_shell")" == "bash" ]; then
113
- opt="-l "
+ local available_shells=(zsh bash)
+ if [[ " ${available_shells[*]} " =~ " $(basename "$default_shell") " ]]; then
114
+ opt="-l "
115
fi
116
export TMUX_DEFAULT_COMMAND="$(get_tmux_option "default-command" "$opt$default_shell")"
117
}
0 commit comments