From f38757297b7de19683b22a6728e8d6aa70c7cf16 Mon Sep 17 00:00:00 2001 From: David Chen Date: Fri, 28 Feb 2020 17:31:04 -0800 Subject: [PATCH] more tmux conf --- .tmux.conf | 16 ++++++++++++++-- zsh/zshrc | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 80366ac..54ea1f4 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -4,7 +4,7 @@ set -g default-terminal 'tmux-256color' set -ga terminal-overrides ',xterm-256color:RGB' setw -g xterm-keys on -set -s escape-time 100 +set -s escape-time 0 set -sg repeat-time 300 set -s focus-events on set -g mouse on @@ -96,6 +96,17 @@ bind -n M-8 select-window -t 8 bind -n M-9 select-window -t 9 +bind -n M-! join-pane -t :1 +bind -n M-@ join-pane -t :2 +bind -n 'M-#' join-pane -t :3 +bind -n 'M-$' join-pane -t :4 +bind -n M-% join-pane -t :5 +bind -n M-^ join-pane -t :6 +bind -n M-& join-pane -t :7 +bind -n M-* join-pane -t :8 +bind -n M-( join-pane -t :9 + + # pane navigation bind 1 select-pane -t:.1 bind 2 select-pane -t:.2 @@ -114,6 +125,7 @@ bind -n M-i select-pane -R bind > swap-pane -D bind < swap-pane -U bind | swap-pane +bind -n M-Space next-layout bind W choose-tree -Z bind S choose-tree 'move-pane -v -s "%%"' @@ -128,7 +140,7 @@ bind -n M-I resize-pane -R 3 set -g status-keys emacs set -g mode-keys vi -bind Enter copy-mode +bind -n M-v copy-mode bind -T copy-mode-vi v send-keys -X begin-selection bind -T copy-mode-vi C-v send-keys -X rectangle-toggle diff --git a/zsh/zshrc b/zsh/zshrc index 41de713..3454074 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -49,7 +49,7 @@ alias gy='git-yolo' alias nb='newsboat -r' alias nt="sh -c 'cd $(pwd); st' > /dev/null 2>&1 &" alias ta='tmux a' -alias tm='tmux' +alias t='tmux' bindkey -v bindkey -M vicmd "k" vi-insert