feat(tmux): add second prefix for nested in ssh

This commit is contained in:
2024-02-19 15:43:17 +01:00
parent 62ccbf5d4b
commit a1b422e29e
2 changed files with 12 additions and 14 deletions

View File

@@ -5,9 +5,7 @@ set -s escape-time 0
set-option -g focus-events on
unbind C-b
set-option -g prefix C-s
bind-key C-s send-prefix
set-option -g prefix2 C-s
bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"
set -g base-index 1
@@ -28,15 +26,15 @@ if-shell -b '[ "$(uname -s)" = "Darwin" ]' {
}
# vim-like pane switching
bind -r ^ last-window
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
bind ^ last-window
bind k select-pane -U
bind j select-pane -D
bind h select-pane -L
bind l select-pane -R
bind-key -r f run-shell "tmux neww ~/.config/tmux/tmux-sessionizer"
bind-key -r F run-shell "tmux neww ~/.config/tmux/tmux-ssher"
bind-key -r T run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~/temp"
bind-key -r R run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~"
bind-key -r G run-shell "tmux neww ~/.config/tmux/tmux-ggclone"
bind-key f run-shell "tmux neww ~/.config/tmux/tmux-sessionizer"
bind-key F run-shell "tmux neww ~/.config/tmux/tmux-ssher"
bind-key T run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~/temp"
bind-key R run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~"
bind-key G run-shell "tmux neww ~/.config/tmux/tmux-ggclone"