tmux hjkl and zsh

This commit is contained in:
Henrik Bakken
2023-10-05 00:02:26 +02:00
parent 3f8882d5d3
commit d17b6e8e1c
2 changed files with 110 additions and 0 deletions
+7
View File
@@ -23,6 +23,9 @@ set -g set-clipboard on
set -g history-limit 20000
set -g focus-events on
# terminal
set-option -g default-shell /bin/zsh
# screen colors
set-option -ga terminal-overrides ",*-256color*:Tc"
@@ -150,6 +153,10 @@ bind-key -n M-h if-shell "$is_vim" "send-keys M-h" "select-pane -L"
bind-key -n M-j if-shell "$is_vim" "send-keys M-j" "select-pane -D"
bind-key -n M-k if-shell "$is_vim" "send-keys M-k" "select-pane -U"
bind-key -n M-l if-shell "$is_vim" "send-keys M-l" "select-pane -R"
bind M-h "select-pane -L"
bind M-j "select-pane -D"
bind M-k "select-pane -U"
bind M-l "select-pane -R"
#bind-key -n M-\ if-shell "$is_vim" "send-keys M-\\" "select-pane -l"
bind-key -T copy-mode-vi M-h select-pane -L
bind-key -T copy-mode-vi M-j select-pane -D