Skip to content

Commit

Permalink
tmux: new-session bind and go to next sessions on session-kill
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusvellone committed Aug 10, 2019
1 parent a43d178 commit 08d53ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tmux/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ bind P \
setw synchronize-panes\;\
display "Synchronized panes are #{?pane_synchronized,on,off}"

bind S \
new-session

# Confirm kill session and go to next session on session-kill
bind-key X confirm-before -p "Kill #S (y/n)?" "run-shell 'tmux switch-client -n \\\; kill-session -t \"\$(tmux display-message -p \"#S\")\"'"

# No delay for escape key press
set -sg escape-time 0

Expand Down

0 comments on commit 08d53ed

Please sign in to comment.