# Mindless copy and paste command: # # # Standard Linux / GNU tools # wget -O ~/.tmux.conf https://andrew-quinn.me/tmux-conf.txt # curl -fsSL https://andrew-quinn.me/tmux-conf.txt -o ~/.tmux.conf # busybox wget -q -O ~/.tmux.conf https://andrew-quinn.me/tmux-conf.txt # # # BSD Systems (NetBSD, OpenBSD, etc. use ftp; FreeBSD uses fetch) # ftp -o ~/.tmux.conf https://andrew-quinn.me/tmux-conf.txt # fetch -o ~/.tmux.conf https://andrew-quinn.me/tmux-conf.txt # # # Windows PowerShell # iwr https://andrew-quinn.me/tmux-conf.txt -OutFile $HOME\.tmux.conf # # # Emergency Interpreter One-Liners (Python, Ruby, Perl, PHP) # python3 -c "import urllib.request,os;urllib.request.urlretrieve('https://andrew-quinn.me/tmux-conf.txt',os.path.expanduser('~/.tmux.conf'))" # ruby -e 'require "open-uri";File.write(File.expand_path("~/.tmux.conf"), URI.open("https://andrew-quinn.me/tmux-conf.txt").read)' # perl -MLWP::Simple -e 'getstore("https://andrew-quinn.me/tmux-conf.txt", "$ENV{HOME}/.tmux.conf")' # php -r "copy('https://andrew-quinn.me/tmux-conf.txt', getenv('HOME') . '/.tmux.conf');" # Sane tmux.conf for tmux with Vim keybindings and 256 color support # Use 256 color mode set -g default-terminal "screen-256color" # Set history limit set -g history-limit 10000 # Enable mouse support (good for modern terminals) set -g mouse on # Use vi keys in copy mode setw -g mode-keys vi # Pane border styling for 256 colors set -g pane-border-style fg=colour238 set -g pane-active-border-style fg=colour81 # Status bar styling for 256 colors set -g status-bg colour234 set -g status-fg colour136 set -g status-left "#[fg=colour81]#S #[fg=colour238]|" set -g status-right "#[fg=colour238]%Y-%m-%d #[fg=colour81]%H:%M:%S #[fg=colour238]| #[fg=colour136]#(whoami)" set-window-option -g window-status-current-format "#[fg=colour81,bold]#[bg=colour238] #I:#W #[bg=default]" set-window-option -g window-status-format "#[fg=colour244] #I:#W " # Set escape time to 0 for better vi/copy mode response set -sg escape-time 0 # Aggressive resize for panes set -g aggressive-resize on # Quiet the visual bell set -g visual-bell off # Make clipboard work better set-option -g set-clipboard on # cooler little names set -g automatic-rename on # monitor activity setw -g monitor-activity on set -g visual-activity on # start window numbering from 1 set -g base-index 1 setw -g pane-base-index 1