commit 2487bd7c905231a3e93c2002f1c00c5e991be37f parent a0ace9218cd7b30d1d9cc2404d5aa0e62837a370 Author: Xiaodong Xu <[email protected]> Date: Sat Jul 6 13:49:06 +0800 Update for tmux 1.8 Diffstat:
_tmux.conf | | | 6 | +----- |
install-tmuxen | | | 4 | ++-- |
tmuxen | | | 24 | ++++++++++++------------ |
diff --git a/_tmux.conf b/_tmux.conf @@ -1,6 +1,6 @@ # # author : Xu Xiaodong <[email protected]> -# modified : 2012 Jul 22 +# modified : 2013 Jul 06 # #-- base settings --# @@ -51,10 +51,6 @@ bind ^p pasteb # paste buffer (prefix Ctrl+p) bind -t vi-copy v begin-selection # select (v) bind -t vi-copy y copy-selection # copy (y) -# zoom pane <-> window -# see also: http://tmux.svn.sourceforge.net/viewvc/tmux/trunk/examples/tmux-zoom.sh -bind ^z run "tmux-zoom" - # app bind ! splitw htop # htop (prefix !) bind m command-prompt "splitw 'exec man %%'" # man (prefix m) diff --git a/install-tmuxen b/install-tmuxen @@ -4,14 +4,14 @@ # author : Xu Xiaodong <[email protected]> # license : GPL # created : 2012 Jul 02 -# modified : 2012 Nov 16 +# modified : 2013 Jul 06 # bin=$HOME/bin cwd=$(pwd) if [ ! -d $bin ]; then - mkdir $bin + mkdir $bin fi echo "Installing tmuxen to $bin" diff --git a/tmuxen b/tmuxen @@ -4,27 +4,27 @@ # author : Xu Xiaodong <[email protected]> # license : GPL # created : 2012 Jul 01 -# modified : 2012 Nov 16 +# modified : 2013 Jul 06 # -cmd=$(which tmux) # tmux path -session=codefun # session name +cmd=$(which tmux) # tmux path +session=$(hostname -s) # session name if [ -z $cmd ]; then - echo "You need to install tmux." - exit 1 + echo "You need to install tmux." + exit 1 fi $cmd has -t $session 2> /dev/null if [ $? != 0 ]; then - $cmd new -d -n vim -s $session "vim" - $cmd neww -n mutt -t $session "mutt" - $cmd neww -n irssi -t $session "irssi" - $cmd neww -n cmus -t $session "cmus" - $cmd neww -n zsh -t $session "zsh" - $cmd splitw -h -p 50 -t $session "zsh" - $cmd selectw -t $session:5 + $cmd new -d -n vim -s $session "vim" + #$cmd neww -n mutt -t $session "mutt" + $cmd neww -n irssi -t $session "irssi" + $cmd neww -n cmus -t $session "cmus" + $cmd neww -n zsh -t $session "zsh" + #$cmd splitw -h -p 50 -t $session "zsh" + $cmd selectw -t $session:4 fi $cmd att -t $session