commit a0ace9218cd7b30d1d9cc2404d5aa0e62837a370 parent 350a7587f8b438eccf9e11e1f15b0051259e2436 Author: Xiaodong Xu <[email protected]> Date: Fri Nov 16 21:44:30 +0800 Cleanup error message Diffstat:
install-tmuxen | | | 4 | ++-- |
tmuxen | | | 5 | ++--- |
diff --git a/install-tmuxen b/install-tmuxen @@ -4,7 +4,7 @@ # author : Xu Xiaodong <[email protected]> # license : GPL # created : 2012 Jul 02 -# modified : 2012 Jul 10 +# modified : 2012 Nov 16 # bin=$HOME/bin @@ -15,7 +15,7 @@ if [ ! -d $bin ]; then fi echo "Installing tmuxen to $bin" -cp $cwd/tmuxen $bin +ln -sf $cwd/tmuxen $bin/tmuxen echo "Symlinking _tmux.conf to $HOME/.tmux.conf" ln -sf $cwd/_tmux.conf $HOME/.tmux.conf diff --git a/tmuxen b/tmuxen @@ -4,7 +4,7 @@ # author : Xu Xiaodong <[email protected]> # license : GPL # created : 2012 Jul 01 -# modified : 2012 Jul 02 +# modified : 2012 Nov 16 # cmd=$(which tmux) # tmux path @@ -15,11 +15,10 @@ if [ -z $cmd ]; then exit 1 fi -$cmd has -t $session +$cmd has -t $session 2> /dev/null if [ $? != 0 ]; then $cmd new -d -n vim -s $session "vim" - $cmd splitw -v -p 20 -t $session "pry" $cmd neww -n mutt -t $session "mutt" $cmd neww -n irssi -t $session "irssi" $cmd neww -n cmus -t $session "cmus"