From ba20476af67589ef01c948d9a8fb1da53147552f Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Wed, 21 Dec 2016 17:56:11 +0100 Subject: [PATCH] fixed default-command when using fish shell, fixes #46 --- .tmux.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 2608a36..44de80f 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1013,7 +1013,14 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # # see https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard # if command -v reattach-to-user-namespace > /dev/null 2>&1; then # default_shell="$(tmux show -gv default-shell)" -# tmux set -g default-command "exec $default_shell... 2> /dev/null & reattach-to-user-namespace $default_shell -l" +# case "$default_shell" in +# *fish) +# tmux set -g default-command "reattach-to-user-namespace -l $default_shell" +# ;; +# *sh) +# tmux set -g default-command "exec $default_shell... 2> /dev/null & reattach-to-user-namespace -l $default_shell" +# ;; +# esac # fi # # _apply_overrides