Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleanup error message

  • Loading branch information...
commit a0ace9218cd7b30d1d9cc2404d5aa0e62837a370 1 parent 350a758
Xiaodong Xu authored
Showing with 4 additions and 5 deletions.
  1. +2 −2 install-tmuxen
  2. +2 −3 tmuxen
4 install-tmuxen
View
@@ -4,7 +4,7 @@
# author : Xu Xiaodong <xxdlhy@gmail.com>
# 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
5 tmuxen
View
@@ -4,7 +4,7 @@
# author : Xu Xiaodong <xxdlhy@gmail.com>
# 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"
Please sign in to comment.
Something went wrong with that request. Please try again.