Skip to content

Instantly share code, notes, and snippets.

@thomasballinger
Created March 15, 2013 22:17
Show Gist options
  • Save thomasballinger/5173558 to your computer and use it in GitHub Desktop.
Save thomasballinger/5173558 to your computer and use it in GitHub Desktop.
My tmux config. I got it mostly from somewhere else, can't remember where.
new-session
set-option -g default-command "reattach-to-user-namespace -l bash"
unbind C-b
# I'm tempted to use C-a, but I want 'beginning of line'
set -g prefix C-q
set -g history-limit 1000000
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-window-option -g mode-mouse on
# vim copy mode
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
set -g status on
# Adding option for continued holding control
bind-key C-n next-window
bind-key C-p previous-window
bind-key C-c new-window
# easy reload
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Vim-like move panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# status bar to use with inconsolata font
set -g status-right '%l:%M %p %A %B %d '
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g status-right '#[fg=green]<#[fg=white]#T#[fg=green]> #[fg=blue]%A %B %D #[fg=white]%l:%M%p#[default]'
set -g status-left-length 32
set -g status-right-length 150
set -g status-fg white
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
set -g set-titles on
set -g set-titles-string '(#S):[ #I/#P:#W ] - tmux'
# these work better with pretty fonts maybe?
set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀'
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment