1
0
Эх сурвалжийг харах

Check tmux presence before installing files

Taddeus Kroes 2 долоо хоног өмнө
parent
commit
f68b0211ce
1 өөрчлөгдсөн 5 нэмэгдсэн , 3 устгасан
  1. 5 3
      install.sh

+ 5 - 3
install.sh

@@ -19,9 +19,11 @@ ln -sf $DIR/gitconfig ~/.gitconfig
 ln -sf $DIR/bashrc ~/.bashrc
 
 # tmux
-ln -sf $DIR/tmux.conf ~/.tmux.conf
-if [ $INSTALL_ALL -eq 1 ]; then
-    ln -sf $DIR/tmux.clear-keys.conf ~/.tmux.clear-keys.conf
+if which tmux >/dev/null; then
+    ln -sf $DIR/tmux.conf ~/.tmux.conf
+    if [ $INSTALL_ALL -eq 1 ]; then
+        ln -sf $DIR/tmux.clear-keys.conf ~/.tmux.clear-keys.conf
+    fi
 fi
 
 # vim