|
@@ -5,21 +5,17 @@ set -g @plugin 'tmux-plugins/tpm'
|
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
|
|
|
|
|
|
|
-# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
|
|
|
-run '~/.dotfiles/external/tpm/tpm'
|
|
|
|
|
-
|
|
|
|
|
# Clear the pane and it's history
|
|
# Clear the pane and it's history
|
|
|
bind -n C-k send-keys C-l \; clear-history
|
|
bind -n C-k send-keys C-l \; clear-history
|
|
|
|
|
|
|
|
-# smart pane switching with awareness of vim splits
|
|
|
|
|
-bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
|
|
|
|
|
-bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
|
|
|
|
|
-bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
|
|
|
|
|
-bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
|
|
|
|
|
-bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
|
|
|
|
|
-
|
|
|
|
|
# C-l is taken over by vim style pane navigation
|
|
# C-l is taken over by vim style pane navigation
|
|
|
bind C-l send-keys 'C-l'
|
|
bind C-l send-keys 'C-l'
|
|
|
|
|
|
|
|
# try to use correct colors
|
|
# try to use correct colors
|
|
|
set -g default-terminal screen-256color
|
|
set -g default-terminal screen-256color
|
|
|
|
|
+
|
|
|
|
|
+# reload tmux config
|
|
|
|
|
+bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
|
|
|
|
|
+
|
|
|
|
|
+# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
|
|
|
+run '~/.dotfiles/external/tpm/tpm'
|