tmuxen

tmux environment made easy
git clone git://git.unixkoans.com/tmuxen.git
Log | Files | Refs

commit a0e53c6d6d480b0b914e7d51e00a8bf4d8e3fe2e
parent 891272a37f3991c7bdb87424c44d24d641c68425
Author: Xiaodong Xu <[email protected]>
Date:   Mon Jul  2 00:31:59 +0800

Fix session exist problem

Diffstat:
tmuxen | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tmuxen b/tmuxen @@ -3,7 +3,7 @@ # name : tmuxen, tmux environment made easy # author : Xu Xiaodong <[email protected]> # created : 2012 Jul 01 -# modified : 2012 Jul 01 +# modified : 2012 Jul 02 # cmd=$(which tmux) # tmux path @@ -14,7 +14,9 @@ if [ -z $cmd ]; then exit 1 fi -if [ ! $($cmd has -t $session) ]; then +$cmd has -t $session + +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"