From 3e9ccba39c499c342c8d96b8fc587ee5d700bc2a Mon Sep 17 00:00:00 2001 From: keesh54 Date: Mon, 8 Jan 2024 17:28:22 +0500 Subject: [PATCH] added login shell flag for zsh as default shell --- scripts/restore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/restore.sh b/scripts/restore.sh index 1a5e3f98..8058f636 100755 --- a/scripts/restore.sh +++ b/scripts/restore.sh @@ -109,7 +109,8 @@ tmux_socket() { cache_tmux_default_command() { local default_shell="$(get_tmux_option "default-shell" "")" local opt="" - if [ "$(basename "$default_shell")" == "bash" ]; then + local available_shells=(zsh bash) + if [[ " ${available_shells[*]} " =~ " $(basename "$default_shell") " ]]; then opt="-l " fi export TMUX_DEFAULT_COMMAND="$(get_tmux_option "default-command" "$opt$default_shell")"