Update .tmux.conf
add create a session with name and kill
This commit is contained in:
parent
a795f9ec51
commit
b1f66acae3
1 changed files with 5 additions and 1 deletions
|
@ -58,9 +58,13 @@ set -g visual-activity off
|
|||
|
||||
|
||||
# -- navigation ----------------------------------------------------------------
|
||||
These two settings let you create/kill a new session when pressing Prefix S (Shift+s) or Prefix K (Shift+k) respectively:
|
||||
|
||||
# create session
|
||||
bind C-c new-session
|
||||
bind C-s command-prompt -p "New Session:" "new-session -A -s '%%'"
|
||||
|
||||
# kill session
|
||||
bind K confirm kill-session
|
||||
|
||||
# find session
|
||||
bind C-f command-prompt -p find-session 'switch-client -t %%'
|
||||
|
|
Loading…
Reference in a new issue