]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
tmux.conf: Use Zsh as shell if available.
[config/dotfiles.git] / setup.sh
index 3950d1511a72d61fcb2030c5ce10e5f01c85cfa3..cc77d54e5a6c7b6a450ad69e7f030e907e4c2475 100755 (executable)
--- 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.