Skip to content

Instantly share code, notes, and snippets.

@kietdlam
Created December 8, 2014 22:38
Show Gist options
  • Save kietdlam/508f95c09cd7314737f0 to your computer and use it in GitHub Desktop.
Save kietdlam/508f95c09cd7314737f0 to your computer and use it in GitHub Desktop.
# Lifted from: http://www.danielmiessler.com/study/tmux/#why
# Tmux settings
# Set XTerm key bindings
#setw -g xterm-keys on
# Set colors
set-option -g default-terminal "screen-256color"
set -g default-terminal "screen-256color"
# Set reload key to r
bind r source-file ~/.tmux.conf
# Count sessions start at 1
set -g base-index 1
set -g pane-base-index 1
# Emacs prefix fix
set -g prefix C-]
# Sane scrolling
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-window-option -g mode-mouse on
# Remap window navigation to vim
# unbind-key j
# bind-key j select-pane -D
# unbind-key k
# bind-key k select-pane -U
# unbind-key h
# bind-key h select-pane -L
# unbind-key l
# bind-key l select-pane -R
# Set the title bar
set -g set-titles on
set -g set-titles-string '#(whoami) :: #h :: #(curl ipecho.net/plain;echo)'
# Set status bar
set -g status-utf8 on
set -g status-bg black
set -g status-fg white
set -g status-interval 5
set -g status-left-length 90
set -g status-right-length 60
set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=blue]#(hostname -s)#[fg=white]::#[fg=yellow]#(curl ipecho.net/plain;echo)"
set -g status-justify left
set -g status-right '#[fg=Cyan]#S #[fg=white]%a %d %b %R'
set-option -g status-position top
# tmux copy / paste
set-option -g default-command "reattach-to-user-namespace -l bash"
# emacs keybindings
set -gw mode-keys emacs
set -g renumber-windows on
# Color
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg brightgreen #base01
# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# history size
set -g history-limit 1000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment