Unverified Commit 1160c1da authored by Helmut K. C. Tessarek's avatar Helmut K. C. Tessarek Committed by Bruno Sutic
Browse files

only add -l when default_shell is bash

parent c66b791f
...@@ -100,7 +100,11 @@ tmux_socket() { ...@@ -100,7 +100,11 @@ tmux_socket() {
# tmux server each time. # tmux server each time.
cache_tmux_default_command() { cache_tmux_default_command() {
local default_shell="$(get_tmux_option "default-shell" "")" 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() { tmux_default_command() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment