From 62a35ec77e6b3b0fc9de77ea7c4fa7fa407a5f2a Mon Sep 17 00:00:00 2001 From: hophacker Date: Tue, 7 Apr 2020 11:33:55 +0800 Subject: [PATCH] add tmux bindings for windows --- tmux/tmux.conf | 6 ++++++ zsh/local.zsh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index cc1ab0c..592cbbc 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -27,6 +27,12 @@ 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" + +bind -n C-Left if-shell "$is_vim" "send-keys C-h" "select-pane -L" +bind -n C-Down if-shell "$is_vim" "send-keys C-j" "select-pane -D" +bind -n C-Up if-shell "$is_vim" "send-keys C-k" "select-pane -U" +bind -n C-Right if-shell "$is_vim" "send-keys C-l" "select-pane -R" + bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" # Use vi keybindings for tmux commandline input. diff --git a/zsh/local.zsh b/zsh/local.zsh index 26f3468..7afb5e4 100644 --- a/zsh/local.zsh +++ b/zsh/local.zsh @@ -44,5 +44,5 @@ if [ -e ~/Projects/paiyou-hub/bin/rancher_setup.sh ]; then source ~/Projects/paiyou-hub/bin/rancher_setup.sh fi -[ -e ~/Projects/paiyou-hub/.myzshrc ] && source ~/Projects/paiyou-hub/.myzshrc +[ -e ~/Projects/quanzhan/.myzshrc ] && source ~/Projects/quanzhan/.myzshrc