|
|
@ -56,9 +56,6 @@ set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
|
|
|
|
|
|
|
|
# Tmux OneDark: http://github.com/odedlaz/tmux-onedark-themetheme
|
|
|
|
# Tmux OneDark: http://github.com/odedlaz/tmux-onedark-themetheme
|
|
|
|
#set -g @plugin 'odedlaz/tmux-onedark-theme'
|
|
|
|
#set -g @plugin 'odedlaz/tmux-onedark-theme'
|
|
|
|
# Tmux-Themepack (feat Powerline)
|
|
|
|
|
|
|
|
set -g @plugin 'jimeh/tmux-themepack'
|
|
|
|
|
|
|
|
set -g @themepack 'powerline/default/blues'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Make tmux display true colors
|
|
|
|
# Make tmux display true colors
|
|
|
|
#set -g default-terminal "screen-256color"
|
|
|
|
#set -g default-terminal "screen-256color"
|
|
|
@ -74,7 +71,7 @@ set -g default-terminal "xterm-256color"
|
|
|
|
|
|
|
|
|
|
|
|
set -g mouse on
|
|
|
|
set -g mouse on
|
|
|
|
|
|
|
|
|
|
|
|
# Home/End keys handled in [n]vim maybe?
|
|
|
|
# Home/End keys handled in [n]vim
|
|
|
|
bind-key -n Home send Escape "OH"
|
|
|
|
bind-key -n Home send Escape "OH"
|
|
|
|
bind-key -n End send Escape "OF"
|
|
|
|
bind-key -n End send Escape "OF"
|
|
|
|
|
|
|
|
|
|
|
@ -97,12 +94,12 @@ set -g escape-time 0
|
|
|
|
|
|
|
|
|
|
|
|
# Smart pane switching with awareness of Vim splits.
|
|
|
|
# Smart pane switching with awareness of Vim splits.
|
|
|
|
# See: https://github.com/christoomey/vim-tmux-navigator
|
|
|
|
# See: https://github.com/christoomey/vim-tmux-navigator
|
|
|
|
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
|
|
|
#is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
|
|
|
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|l?n?vim?x?|fzf)(diff)?$'"
|
|
|
|
# | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|l?n?vim?x?|fzf)(diff)?$'"
|
|
|
|
bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
|
|
|
|
#bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
|
|
|
|
bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
|
|
|
|
#bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
|
|
|
|
bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
|
|
|
|
#bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
|
|
|
|
bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
|
|
|
|
#bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
|
|
|
|
|
|
|
|
|
|
|
|
#tmux_version='$(tmux -V | sed -En "s/^tmux ([1-9]+(.[0-9]+)?).*/\1/p")'
|
|
|
|
#tmux_version='$(tmux -V | sed -En "s/^tmux ([1-9]+(.[0-9]+)?).*/\1/p")'
|
|
|
|
#if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
|
|
|
|
#if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
|
|
|
|