From e88a9eded78887a69ea90e3c045f1a2dfa278a4a Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 8 Apr 2015 11:33:58 -0700 Subject: [PATCH] Simplify tmux splits --- assets/default/dotfiles/tmux.conf | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/assets/default/dotfiles/tmux.conf b/assets/default/dotfiles/tmux.conf index e548285..e13c646 100644 --- a/assets/default/dotfiles/tmux.conf +++ b/assets/default/dotfiles/tmux.conf @@ -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