Skip to content

Instantly share code, notes, and snippets.

@iliafrenkel
Created November 7, 2019 08:00
Show Gist options
  • Save iliafrenkel/aee9a44b351ea491733fc5fbeeb520db to your computer and use it in GitHub Desktop.
Save iliafrenkel/aee9a44b351ea491733fc5fbeeb520db to your computer and use it in GitHub Desktop.
My tmux configuration
# https://github.com/tony/tmux-config/blob/master/.tmux.conf
# Change the default prefix from <Ctrl>+b to <Ctrl>+a
set-option -g prefix C-a
# default window title colors
set-window-option -g window-status-style fg=colour244,bg=default,dim # fg=base0
# active window title colors
set-window-option -g window-status-current-style fg=colour166,bg=default,bright # fg=orange
# pane border
set-option -g pane-border-style fg=colour235 #fg=base02
set-option -g pane-active-border-style fg=colour240 #fg=base01
# message text
set-option -g message-style bg=colour235,fg=colour166 # bg=base02, fg=orange
# Status bar configuration
set-option -g status-style bg=colour235,fg=colour136,default # bg=base02, fg=yellow
set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 20
set -g status-right-length 140
set -g status-left '#[fg=green]#H #[fg=black]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]'
set -g status-right '#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") #[fg=white,bg=default]%a%l:%M:%S %p#[default] #[fg=blue]%Y-%m-%d'
# Start numbering at 1
set -g base-index 1
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment