Simplify tmux splits

This commit is contained in:
ViViDboarder 2015-04-08 11:33:58 -07:00
parent e49a8009af
commit e88a9eded7
1 changed files with 3 additions and 7 deletions

View File

@ -27,13 +27,9 @@ setw -g mouse-select-window on
setw -g mouse-select-pane on
# easy splitting
if-shell "source ./.bash_funcs && vertest `tmux -V | sed 's/[^0-9\.]*//g'` '>=' 1.9" 'bind | split-window -h -c "#{pane_current_path}"'
if-shell "source ./.bash_funcs && vertest `tmux -V | sed 's/[^0-9\.]*//g'` '>=' 1.9" 'bind - split-window -c "#{pane_current_path}"'
if-shell "source ./.bash_funcs && vertest `tmux -V | sed 's/[^0-9\.]*//g'` '>=' 1.9" 'bind _ split-window -c "#{pane_current_path}"'
# old versions (some won't recognize new vertest function"
if-shell "source ./.bash_funcs && vertest `tmux -V | sed 's/[^0-9\.]*//g'` '<' 1.9 || [ $? -eq 127 ]" 'bind | split-window -h'
if-shell "source ./.bash_funcs && vertest `tmux -V | sed 's/[^0-9\.]*//g'` '<' 1.9 || [ $? -eq 127 ]" 'bind - split-window'
if-shell "source ./.bash_funcs && vertest `tmux -V | sed 's/[^0-9\.]*//g'` '<' 1.9 || [ $? -eq 127 ]" 'bind _ split-window'
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -c "#{pane_current_path}"
bind _ split-window -c "#{pane_current_path}"
# act like vim
setw -g mode-keys vi