Browse Source

Bind function to switch sessions to ^z^o

pull/1/head
10sr 10 years ago
parent
commit
24e4801955
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      tmux.conf

+ 4
- 1
tmux.conf View File

@@ -5,12 +5,15 @@ if "test -f $HOME/.tmux.conf.local" "source-file $HOME/.tmux.conf.local" \


unbind C-b unbind C-b
set -g prefix C-z set -g prefix C-z

bind C-z send-prefix bind C-z send-prefix
bind C-c command-prompt "new-window '%%'" bind C-c command-prompt "new-window '%%'"
bind C-r source-file ~/.tmux.conf \; display-message "Reloaded config !" bind C-r source-file ~/.tmux.conf \; display-message "Reloaded config !"
# new-session: -A: "behaves like attach-session if session-name already exists" # new-session: -A: "behaves like attach-session if session-name already exists"
# -d: do not attach the created session # -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'" "new-session -Ad -s '%1'\; switch-client -t '%1'"


set -g base-index 1 set -g base-index 1


Loading…
Cancel
Save