From 24e48019554ac8cf40b97dfbda6de1e03d24c3f1 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 25 Dec 2014 12:50:26 +0900 Subject: [PATCH] Bind function to switch sessions to ^z^o --- tmux.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tmux.conf b/tmux.conf index 9704cb5..bcfed9c 100644 --- a/tmux.conf +++ b/tmux.conf @@ -5,12 +5,15 @@ 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-c command-prompt "new-window '%%'" bind C-r source-file ~/.tmux.conf \; display-message "Reloaded config !" # new-session: -A: "behaves like attach-session if session-name already exists" # -d: do not attach the created session -bind C-s command-prompt -p "session name:" \ +bind C-s command-prompt -p "session name to switch to:" \ + "new-session -Ad -s '%1'\; switch-client -t '%1'" +bind C-o command-prompt -p "session name to switch to:" \ "new-session -Ad -s '%1'\; switch-client -t '%1'" set -g base-index 1