[zsh,tmux] Set the tmux window name from the ZSH prompt

This commit is contained in:
Eryn Wells 2022-05-22 17:03:00 -07:00
parent d5ede2e563
commit 98dd139677
2 changed files with 47 additions and 25 deletions

View file

@ -15,6 +15,7 @@ set -g visual-bell off
# Pass xterm titles through
set -g set-titles on
set -g set-titles-string "#T"
set -g allow-rename on
# Use vi keys for copy mode
set -g mode-keys vi
@ -30,26 +31,30 @@ set -g status-left-style bg=green,fg=black
set -g status-right "#[bg=red,fg=white] #h #[bg=blue,fg=white] %H:%M %Y-%m-%d #[default]"
# Start window and pane indexing from 1 instead of 0
set-option -g base-index 1
set-option -g pane-base-index 1
set -g base-index 1
set -g pane-base-index 1
# Tabs like this: "(<index>:<window_name>)"
setw -g window-status-style "fg=white,bg=black"
setw -g window-status-format " #I #W "
setw -g window-status-current-style "fg=white,bg=blue"
setw -g window-status-current-format " #I #W "
setw -g window-status-separator ""
set -g window-status-style "fg=white,bg=black"
set -g window-status-format " #I #W "
set -g window-status-current-style "fg=white,bg=blue"
set -g window-status-current-format " #I #W "
set -g window-status-separator ""
setw -g window-status-bell-style "bg=red"
setw -g window-status-activity-style "bg=red"
set -g window-status-bell-style "bg=red"
set -g window-status-activity-style "bg=red"
setw -g alternate-screen on
set -g alternate-screen on
setw -g clock-mode-style 24
set -g clock-mode-style 24
# Lock the screen after 120 seconds
set-option -g lock-after-time 0
set-option -g lock-command "tmux clock-mode"
set -g lock-after-time 0
set -g lock-command "tmux clock-mode"
#
# KEY BINDINGS
#
bind-key C-a last-window
# TODO: Decide if this should have a -n (allow invoking the command without the leader).