From b47bd26727015add56c64b635a87e6c4d4406b27 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 13 Mar 2014 00:47:12 +0900 Subject: [PATCH] tmux.conf: add keybind for switch sessions --- tmux.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tmux.conf b/tmux.conf index c24f94a..2b526c8 100644 --- a/tmux.conf +++ b/tmux.conf @@ -6,8 +6,10 @@ if "test -f $HOME/.tmux.conf.local" "source-file $HOME/.tmux.conf.local" \ unbind C-b set -g prefix C-z bind C-z send-prefix -bind c command-prompt "new-window '%%'" -bind C-r source-file ~/.tmux.conf \; display-message "Reloaded config !!" +bind C-c command-prompt "new-window '%%'" +bind C-r source-file ~/.tmux.conf \; display-message "Reloaded config !" +bind C-s command-prompt -p "prompt name:" \ +"new-session -t '%1'; switch-client -t '%1'" set -g base-index 1 set -g pane-base-index 1