Init-Files/.tmux.conf
2026-01-31 18:31:38 +00:00

51 lines
1.3 KiB
Bash

# C-b is not acceptable -- Vim uses it
set-option -g prefix C-b
bind-key C-b last-window
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
#set -s escape-time 0
# Set status bar
set -g status-style fg=white,bg=black
set -g status-left ""
set -g status-right "#[fg=green]#H"
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix
# Fix control keys through putty
# (It looks like on some versions of tmux this needs to be setw not set.)
set -g xterm-keys on
setw -g xterm-keys on
# Activity monitoring
#setw -g monitor-activity on
#set -g visual-activity on
# Example of using a shell command in the status line
# set -g status-right "#[fg=yellow]#(date)"
# Highlight active window
set-window-option -g window-status-current-style bg=red
# set-window-option -g mouse on
set -g history-limit 30000
# pretty
set -g default-terminal "tmux-direct"
set -a terminal-features "tmux-direct:RGB"
# fish!
set-option -g default-shell /bin/fish
# rebind the SSH_TTY environment variable on reconnect
set -ag update-environment "SSH_TTY"