feat(tmux): mappings

This commit is contained in:
thek4n 2024-04-25 10:28:46 +03:00
parent 153499b787
commit 910fde9b06
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# vim: ft=tmux # vim: ft=tmux
set -g command-alias[100] kill='kill-session -t' set -ga command-alias kill='kill-session -t'
set -g command-alias[101] k='kill-session -t' set -ga command-alias k='kill-session -t'

View File

@ -29,7 +29,11 @@ bind n command-prompt -p "New session:" "new-session -A -d -s '%1' -c ~ \; switc
# Kill session and reattach to last session # Kill session and reattach to last session
bind k confirm-before -p "kill current session? (y/n)" "switch-client -l \; kill-session -t '#S'" bind x confirm-before -p "kill current session? (y/n)" "switch-client -l \; kill-session -t '#S'"
bind k confirm-before -p "kill current pane? (y/n)" "kill-pane"
# Kill last session
bind X confirm-before -p "kill last session? (y/n)" "kill-session -t '#{client_last_session}'"
# SSH Session # SSH Session