mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-21 16:56:31 +00:00
Simplify tmux splits
This commit is contained in:
parent
e49a8009af
commit
e88a9eded7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user