From 3a616b86bd17f14b3b100eac2b45d7832ba9cb73 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 13 Mar 2014 00:57:30 +0900 Subject: [PATCH] tmux.conf: fix ^z^s --- tmux.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tmux.conf b/tmux.conf index 2b526c8..9704cb5 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,15 +1,17 @@ # tmux.conf if "test -f $HOME/.tmux.conf.local" "source-file $HOME/.tmux.conf.local" \ - "display-message \"$HOME/.tmux.conf.local not found\"" + "display-message \"$HOME/.tmux.conf.local not found\"" 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 !" -bind C-s command-prompt -p "prompt name:" \ -"new-session -t '%1'; switch-client -t '%1'" +# 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:" \ + "new-session -Ad -s '%1'\; switch-client -t '%1'" set -g base-index 1 set -g pane-base-index 1