Update tmux config

This commit is contained in:
Thomas Avé 2022-07-04 11:28:31 +02:00
parent 115fbae025
commit cce2a67fd2
1 changed files with 2 additions and 18 deletions

View File

@ -33,32 +33,16 @@ set-window-option -g status-right " #{prefix_highlight} \"#(hostname)\" %H:%M %d
set-window-option -g window-status-format " #I: #W "
set-window-option -g window-status-current-format " #I: #W "
# Vim integration
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?x?)(diff)?$"'
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
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"
set -g default-terminal "screen-256color"
# bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l""
# Extrakto
set -g @extrakto_split_direction v
set -g @extrakto_split_size 15
# Plugins (Keep this last)
set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-open'
# set -g @plugin 'tmux-plugins/tmux-online-status'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'laktak/extrakto'
# set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'christoomey/vim-tmux-navigator'
run '~/.tmux/plugins/tpm/tpm'
#ZSH
set -g default-shell /bin/zsh