|
|
|
@ -47,18 +47,15 @@ set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
|
# Set current dir name as tab (window) name
|
|
|
|
|
# * Shows pwd #{b:pane_current_path}
|
|
|
|
|
# * Shows full path #{pane_current_path}
|
|
|
|
|
# path="#(if [[ $HOME == #{pane_current_path} ]]; then echo \"~\" ; else echo #{b:pane_current_path}; fi)"
|
|
|
|
|
# set -g status-interval 1
|
|
|
|
|
# set-window-option -g window-status-separator ""
|
|
|
|
|
# set-window-option -g window-status-current-format " #{b:pane_current_path} "
|
|
|
|
|
#path="#(if [[ $HOME == #{pane_current_path} ]]; then echo \"~\" ; else echo #{b:pane_current_path}; fi)"
|
|
|
|
|
#set -g status-interval 1
|
|
|
|
|
#set-window-option -g window-status-separator ""
|
|
|
|
|
#set-window-option -g window-status-current-format " #{b:pane_current_path} "
|
|
|
|
|
#set-window-option -g window-status-format " #{b:pane_current_path} "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Tmux OneDark: http://github.com/odedlaz/tmux-onedark-themetheme
|
|
|
|
|
#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
|
|
|
|
|
#set -g default-terminal "screen-256color"
|
|
|
|
@ -74,7 +71,7 @@ set -g default-terminal "xterm-256color"
|
|
|
|
|
|
|
|
|
|
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 End send Escape "OF"
|
|
|
|
|
|
|
|
|
@ -97,12 +94,12 @@ set -g escape-time 0
|
|
|
|
|
|
|
|
|
|
# Smart pane switching with awareness of Vim splits.
|
|
|
|
|
# See: https://github.com/christoomey/vim-tmux-navigator
|
|
|
|
|
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
|
|
|
|
| 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-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-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
|
|
|
|
|
#is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
|
|
|
|
# | 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-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-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")'
|
|
|
|
|
#if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
|
|
|
|
|