From: Simon Ruderich Date: Mon, 15 Oct 2012 19:39:31 +0000 (+0200) Subject: tmux.conf: Use Zsh as shell if available. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=0b60017e21b2b4d2253d1b3dc2d97341db0555e4;p=config%2Fdotfiles.git tmux.conf: Use Zsh as shell if available. --- diff --git a/setup.sh b/setup.sh index 3950d15..cc77d54 100755 --- a/setup.sh +++ b/setup.sh @@ -119,6 +119,12 @@ if installed tmux; then s/screen-256color/screen/' tmux.conf > tmux.conf.tmp mv tmux.conf.tmp tmux.conf fi + # Tmux doesn't display a warning if the shell wasn't found! + if test ! -x '/bin/zsh'; then + echo tmux.conf: removing /bin/zsh as shell + sed 's/zsh/sh/' tmux.conf > tmux.conf.tmp + mv tmux.conf.tmp tmux.conf + fi fi # Htop overwrites the comments in its configuration file. diff --git a/tmux.conf.in b/tmux.conf.in index 9c22dfb..2c27744 100644 --- a/tmux.conf.in +++ b/tmux.conf.in @@ -23,6 +23,10 @@ # GENERAL +# Use Zsh as shell. Tmux does not display a warning if the shell isn't +# available! +set-option -g default-shell "/bin/zsh" + # Use a larger window history, in lines. set-option -g history-limit 10000