aboutsummaryrefslogtreecommitdiff
path: root/.tmux.conf
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-12-10 15:29:37 +0800
committerGuangxiong Lin <[email protected]>2021-12-10 15:29:37 +0800
commit82a18aa5e65a982bab806a823bc714f0d84b6418 (patch)
tree313ee52aff0eba2fa1b8bf3779da7c57cbf098fe /.tmux.conf
parent5b65b54f8e71171e97501d73554764e1b751fa06 (diff)
downloaddotfiles-82a18aa5e65a982bab806a823bc714f0d84b6418.tar.gz
dotfiles-82a18aa5e65a982bab806a823bc714f0d84b6418.tar.bz2
dotfiles-82a18aa5e65a982bab806a823bc714f0d84b6418.zip
Update tmux prefix
Diffstat (limited to '.tmux.conf')
-rw-r--r--.tmux.conf11
1 files changed, 7 insertions, 4 deletions
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'