dotfiles

My current dotfiles, managed with stow!
Log | Files | Refs

commit fffbea80dcf597bf1dc01ffdd567dd9ccc58aa8a
parent cc31aed8ac25a68966fcc88653f1c8748b45cead
Author: Benjamin Paul <bpaul@bpaul.xyz>
Date:   Tue, 14 Dec 2021 19:11:56 +1000

Prompt for window rename on creation of a window when using tmux

Diffstat:
Mtmux/.tmux.conf | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf @@ -9,10 +9,19 @@ unbind C-b set -g prefix C-a bind C-a send-prefix +# Use 256 colours +set -g default-terminal 'screen-256color' + # Start window index at 1 set -g base-index 1 setw -g pane-base-index 1 +# Don't allow window renaming +set -g allow-rename off + +# Automatically prompt to rename window on creation +set-hook -g after-new-window 'command-prompt -I "" "rename-window '%%'"' + # Status bar set -g status-position top set -g status-interval 1 @@ -34,6 +43,3 @@ unbind \" unbind s # Note this is normally choose-tree -Zs bind s split-window -v bind h split-window -h - -# Don't allow window renaming -set -g allow-rename off