From f181bf80b868865c07df15906a7b5ab568ed775c Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 26 Apr 2015 13:06:02 +0100 Subject: Tmux shortcuts --- tmux.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tmux.conf') diff --git a/tmux.conf b/tmux.conf index 577b997..4d23b17 100644 --- a/tmux.conf +++ b/tmux.conf @@ -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' -- cgit v1.2.3