fleshed out tmux

This commit is contained in:
ADRN 2024-01-27 10:39:40 +01:00
parent 322e2f81ae
commit bc7a222dec
8 changed files with 11 additions and 21 deletions

View File

@ -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 ]' \

@ -1 +0,0 @@
Subproject commit 4e2279688d8a577ed14f42c4e8af1acb58100a57

@ -1 +0,0 @@
Subproject commit d62b6865c0e7c956ad1f0396823a6f34cf7452a7

@ -1 +0,0 @@
Subproject commit e35740e7a70a84af4fc0bdc40890a8b0de49b7ab

@ -1 +0,0 @@
Subproject commit 763d0a852e6703ce0f5090a508330012a7e6788e

@ -1 +0,0 @@
Subproject commit c3ffe89e525a4692d9fa53235bbce1280d1d8311

@ -1 +0,0 @@
Subproject commit 126150da5e89b262fec94dd7b3d8bcd0966646a9

@ -1 +0,0 @@
Subproject commit 30bfd780061f1752d1133016f217a13add4d4e86