summaryrefslogtreecommitdiff
path: root/tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.conf')
-rw-r--r--tmux.conf10
1 files changed, 7 insertions, 3 deletions
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'