From 82a18aa5e65a982bab806a823bc714f0d84b6418 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 10 Dec 2021 15:29:37 +0800 Subject: Update tmux prefix --- .tmux.conf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf index 5cf68e6..b9e699a 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,8 +1,11 @@ # general -unbind ^b -set -g prefix 'C-\' -bind 'C-\' send-prefix -2 +unbind C-b +unbind C-q + +unbind C-s +set -g prefix 'C-s' +bind 'C-s' send-prefix -2 set -sg escape-time 0 set -g default-terminal "xterm-256color" @@ -35,8 +38,8 @@ bind L resize-pane -R 5 bind K resize-pane -U 5 bind J resize-pane -D 5 - # copy and paste like vim bind -T copy-mode-vi 'v' send -X begin-selection bind -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" +if-shell 'test -f "$HOME/.local/.tmux.conf"' 'source ~/.local/.tmux.conf' -- cgit v1.2.3