49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
# vi:syntax=tmux
|
|
# Include current color theme
|
|
source-file ~/.config/tmux/current-theme.conf
|
|
|
|
# Reload the config with the "r" key
|
|
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
|
|
|
set -s exit-empty off
|
|
|
|
unbind C-a
|
|
set -g prefix C-b
|
|
|
|
# No automatic renaming of windows
|
|
set -g automatic-rename off
|
|
|
|
# Enable 256-color terminal
|
|
set -g default-terminal "screen-256color"
|
|
|
|
# Set titles to be informative
|
|
set -g set-titles on
|
|
set -g set-titles-string "[#H:#S] #W:#D-#I:#P (tmux)"
|
|
|
|
# Tweak currently active window
|
|
#setw -g window-status-current-format " #F[#W] "
|
|
|
|
# Tweak display of window overview
|
|
#setw -g window-status-format " #F[#W][#I] "
|
|
|
|
# Status bar content
|
|
set -g status-justify centre
|
|
set -g status-left " [#{user}@#H:#S] "
|
|
set -g status-left-length 100
|
|
set -g status-right '[%Y-%m-%d %H:%M.%S]'
|
|
# Refresh status bar every second
|
|
set -g status-interval 1
|
|
|
|
# Set some helpful limits & modes
|
|
set -g mouse off
|
|
set -g history-limit 500000
|
|
|
|
# Make tmux resize based on smallest client actually viewing the window, not just attached
|
|
setw -g aggressive-resize on
|
|
|
|
# Retain cwd on new pane creation
|
|
#bind c new-window -c "#{pane_current_path}"
|
|
|
|
|
|
#refresh-client
|