From bc7a222dec9adfb2e1751b38e7dc0716e97dd8af Mon Sep 17 00:00:00 2001 From: ADRN Date: Sat, 27 Jan 2024 10:39:40 +0100 Subject: [PATCH] fleshed out tmux --- tmux.conf | 25 +++++++++++-------------- tmux/plugins/tmux-continuum | 1 - tmux/plugins/tmux-fzf | 1 - tmux/plugins/tmux-onedark-theme | 1 - tmux/plugins/tmux-open | 1 - tmux/plugins/tmux-resurrect | 1 - tmux/plugins/tmux-themepack | 1 - tmux/plugins/tmux-yank | 1 - 8 files changed, 11 insertions(+), 21 deletions(-) delete mode 160000 tmux/plugins/tmux-continuum delete mode 160000 tmux/plugins/tmux-fzf delete mode 160000 tmux/plugins/tmux-onedark-theme delete mode 160000 tmux/plugins/tmux-open delete mode 160000 tmux/plugins/tmux-resurrect delete mode 160000 tmux/plugins/tmux-themepack delete mode 160000 tmux/plugins/tmux-yank diff --git a/tmux.conf b/tmux.conf index 832c24b..279cd30 100644 --- a/tmux.conf +++ b/tmux.conf @@ -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 ]' \ diff --git a/tmux/plugins/tmux-continuum b/tmux/plugins/tmux-continuum deleted file mode 160000 index 4e22796..0000000 --- a/tmux/plugins/tmux-continuum +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4e2279688d8a577ed14f42c4e8af1acb58100a57 diff --git a/tmux/plugins/tmux-fzf b/tmux/plugins/tmux-fzf deleted file mode 160000 index d62b686..0000000 --- a/tmux/plugins/tmux-fzf +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d62b6865c0e7c956ad1f0396823a6f34cf7452a7 diff --git a/tmux/plugins/tmux-onedark-theme b/tmux/plugins/tmux-onedark-theme deleted file mode 160000 index e35740e..0000000 --- a/tmux/plugins/tmux-onedark-theme +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e35740e7a70a84af4fc0bdc40890a8b0de49b7ab diff --git a/tmux/plugins/tmux-open b/tmux/plugins/tmux-open deleted file mode 160000 index 763d0a8..0000000 --- a/tmux/plugins/tmux-open +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 763d0a852e6703ce0f5090a508330012a7e6788e diff --git a/tmux/plugins/tmux-resurrect b/tmux/plugins/tmux-resurrect deleted file mode 160000 index c3ffe89..0000000 --- a/tmux/plugins/tmux-resurrect +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c3ffe89e525a4692d9fa53235bbce1280d1d8311 diff --git a/tmux/plugins/tmux-themepack b/tmux/plugins/tmux-themepack deleted file mode 160000 index 126150d..0000000 --- a/tmux/plugins/tmux-themepack +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 126150da5e89b262fec94dd7b3d8bcd0966646a9 diff --git a/tmux/plugins/tmux-yank b/tmux/plugins/tmux-yank deleted file mode 160000 index 30bfd78..0000000 --- a/tmux/plugins/tmux-yank +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 30bfd780061f1752d1133016f217a13add4d4e86