From 94b52e8204ec4e3abca9c62fd07f34cd5fdfd3c7 Mon Sep 17 00:00:00 2001 From: Von Random Date: Fri, 13 Jul 2018 16:24:15 +0300 Subject: [PATCH] tmux magic, pane resize hotkeys --- tmux.conf | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tmux.conf b/tmux.conf index b5eac1c..27c0dd7 100644 --- a/tmux.conf +++ b/tmux.conf @@ -4,18 +4,16 @@ bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R -bind < resize-pane -L 5 -bind > resize-pane -R 5 -bind - resize-pane -D 5 -bind + resize-pane -U 5 -bind e choose-session +bind r switch-client -T resize +bind -T resize -r h resize-pane -L 5 +bind -T resize -r j resize-pane -D 5 +bind -T resize -r k resize-pane -U 5 +bind -T resize -r l resize-pane -R 5 bind p command-prompt -p "ssh:" "new-session -As 'ssh'; new-window -n '%1' 'TERM=screen.xterm-new ssh %%'" -bind t command-prompt -p "attach pane to:" "join-pane -t :'%%'" +bind t command-prompt -p "attach pane to:" "join-pane -t '%%'" bind y command-prompt break-pane bind -n M-w next-window bind -n M-q previous-window -bind -n M-j next-window -bind -n M-k previous-window bind -n M-` last-window set -g prefix C-g set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"