diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 593fd923..3b348ab5 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -42,6 +42,9 @@ bind-key b set-option status bind v split-window -v -c "#{pane_current_path}" bind h split-window -h -c "#{pane_current_path}" +bind C-x kill-session +bind S command-prompt -p "rename session:" "rename-session '%%'" +bind W command-prompt -p "rename window:" "rename-window '%%'" # Joining and sending bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" diff --git a/.zshrc b/.zshrc index 94829b60..d8dde8b4 100644 --- a/.zshrc +++ b/.zshrc @@ -12,7 +12,16 @@ alias top=btop alias v=nvim alias testvim='NVIM_APPNAME=nvim-test nvim' alias lg=lazygit -alias t=tmux +# tmux aliases +alias t="tmux" +alias ta="tmux attach-session" +alias tat="tmux attach-session -t" +alias tka="tmux kill-session -a" +alias tkt="tmux kill-session -t" +alias tl="tmux list-sessions" +alias tn="tmux new-session" +alias tnt="tmux new-session -t" + bindkey -r '^T' # Created by `pipx` on 2024-09-20 02:14:00