Browse Source

tmux.conf: fix ^z^s

pull/1/head
10sr 10 years ago
parent
commit
3a616b86bd
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      tmux.conf

+ 5
- 3
tmux.conf View File

@@ -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


Loading…
Cancel
Save