From 0b60017e21b2b4d2253d1b3dc2d97341db0555e4 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 15 Oct 2012 21:39:31 +0200 Subject: [PATCH] tmux.conf: Use Zsh as shell if available. --- setup.sh | 6 ++++++ tmux.conf.in | 4 ++++ 2 files changed, 10 insertions(+) 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 -- 2.44.1