Skip to content

Instantly share code, notes, and snippets.

@DanielOaks DanielOaks/.tmux.conf
Last active Dec 13, 2015

Embed
What would you like to do?
My tmux config file, might be useful to some other people
# COLOURS
set -g default-terminal "screen-256color"
# Status bar can have utf-8~
set-option -g status-utf8 on
# Status bar has a dim gray background
set-option -g status-bg "#303030"
set-option -g status-fg "#f0f0f0"
# Left shows the session name, in blue
set-option -g status-left-bg default
set-option -g status-left-fg colour74
# Center-align window list
set -g status-justify centre
# Change prefix key to Ctrl+a
unbind C-b
set -g prefix C-a
bind-key C-a last-window # Double C-a? Go to last window, pleb!
# Titles
set-option -g set-titles on
set-option -g set-titles-string '[#S:#I #H] #W'
# Start window numbering at 1 - nicer keyboard-ness
set-option -g base-index 1
# Highlighting the active window in status bar
setw -g window-status-current-fg "#eebb33"
# to make ctrl-arrow, etc. work
set-window-option -g xterm-keys on
# only shrink if it makes sense
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
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# nicer timeout
set-option -sg escape-time 50
# window renumbering
set-option -g renumber-windows on
# mouse and scrollback
setw -g mode-mouse on
set -g history-limit 12000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.