Fix tmux config to use new syntax

master
nirenjan 2024-05-31 11:36:47 -07:00
parent b81729746a
commit acf0c8a78c
No known key found for this signature in database
GPG Key ID: 35A1F1460EB81716
1 changed files with 16 additions and 21 deletions

View File

@ -68,22 +68,17 @@ set-option -ga status-right "#[fg=red]#(~/bin/stardate)"
set-option -g status-right-length 30
# Status bar - window status
set-window-option -g window-status-current-bg $TMUX_STATUS_BG
set-window-option -g window-status-current-fg cyan
set-window-option -g window-status-current-attr underscore
set-window-option -g window-status-bg $TMUX_STATUS_BG
set-window-option -g window-status-fg $TMUX_STATUS_FG
set-window-option -g window-status-format "#I.#P:#W#F"
set-window-option -g window-status-current-format "#I.#P:#W#F"
set-window-option -g window-status-current-style "fg=cyan bg=$TMUX_STATUS_BG underscore"
set-window-option -g window-status-format "#I.#P:#W#F"
set-window-option -g window-status-style "fg=$TMUX_STATUS_FG bg=$TMUX_STATUS_BG"
# Message bar formatting
set-option -g message-bg $TMUX_MESSAGE_BG
set-option -g message-fg $TMUX_MESSAGE_FG
set-option -g message-command-bg $TMUX_MESSAGE_FG
set-option -g message-command-fg $TMUX_MESSAGE_BG
set-option -g message-style "fg=$TMUX_MESSAGE_FG bg=$TMUX_MESSAGE_BG"
set-option -g message-command-style "fg=$TMUX_MESSAGE_BG bg=$TMUX_MESSAGE_FG"
# Pane highlighting
set-option -g pane-active-border-fg green
set-option -g pane-active-border-style "fg=green"
# Window switching
bind-key C-s last-window
@ -110,14 +105,14 @@ bind-key H \
bind-key C-y set-window-option synchronize-panes
# Tweak the copy mode bindings
unbind-key -t vi-copy C-e
unbind-key -t vi-copy C-y
unbind-key -t vi-copy Enter
unbind-key -t vi-copy Space
unbind-key -t vi-copy v
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy C-v rectangle-toggle
bind-key -t vi-copy y copy-selection
# unbind-key -t vi-copy C-e
# unbind-key -t vi-copy C-y
# unbind-key -t vi-copy Enter
# unbind-key -t vi-copy Space
# unbind-key -t vi-copy v
# bind-key -t vi-copy v begin-selection
# bind-key -t vi-copy C-v rectangle-toggle
# bind-key -t vi-copy y copy-selection
# Resize the panes using vi-style keys
bind-key -r h resize-pane -L
@ -126,7 +121,7 @@ bind-key -r k resize-pane -U
bind-key -r l resize-pane -R
# Allow the escape key to quit the command mode
bind-key -ct vi-edit Escape cancel
# bind-key -ct vi-edit Escape cancel
# Clear history
# Bash uses C-l to clear the screen, so you can use C-l, M-k to clear the
@ -141,7 +136,7 @@ bind-key D detach-client -P
bind-key L choose-session
# Allow the escape key to quit the choice window
bind-key -t vi-choice Escape cancel
# bind-key -t vi-choice Escape cancel
# Terminator style pane switching
# OSX Terminal.app, enable Use option as meta key