diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-04-26 13:06:02 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-04-26 13:06:02 +0100 |
commit | f181bf80b868865c07df15906a7b5ab568ed775c (patch) | |
tree | 0b419e3cad9e1250ace7e0da446f7535357e4f43 /tmux.conf | |
parent | 5e3382ae6e02ca80134efbfd56b3abe261473e35 (diff) |
Tmux shortcuts
Diffstat (limited to 'tmux.conf')
-rw-r--r-- | tmux.conf | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -13,6 +13,8 @@ bind r source-file ~/.tmux.conf set -s escape-time 0 set-option -g allow-rename off +source-file ~/.tmuxlinerc + set -g @tpm_plugins ' \ tmux-plugins/tpm \ tmux-plugins/tmux-sensible \ @@ -20,8 +22,7 @@ set -g @tpm_plugins ' \ ' set -g @resurrect-strategy-vim 'session' - -run-shell '~/.tmux/plugins/tpm/tpm' +set -g @resurrect-processes '"grunt->grunt serve"' is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"' bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" @@ -29,4 +30,7 @@ bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" -source-file ~/.tmuxlinerc +bind-key -n C-S-Left swap-window -t -1 +bind-key -n C-S-Right swap-window -t +1 + +run-shell '~/.tmux/plugins/tpm/tpm' |