Skip to content

Instantly share code, notes, and snippets.

@valentinbud
Created November 16, 2013 11:14
Show Gist options
  • Save valentinbud/7499002 to your computer and use it in GitHub Desktop.
Save valentinbud/7499002 to your computer and use it in GitHub Desktop.
# Copy mode
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
### Tmux default terminal
# set -g default-terminal "screen-256color"
### Tmux happy on Mac OS
# set-option -g default-command "reattach-to-user-namespace -l $SHELL -l"
### Send commands to the ineer session
bind-key q send-prefix
### Set command sequence escape time to 0
set -s escape-time 0
# Use Vi mode
setw -g mode-keys vi
### Set command sequence to C-a
set-option -g prefix C-q
# Make mouse useful in copy mode
setw -g mode-mouse on
# More straight forward key bindings for splitting
unbind %
bind | split-window -h
bind h split-window -h
unbind '"'
bind - split-window -v
bind v split-window -v
# History
set -g history-limit 4000
# Terminal emulator window title
set -g set-titles on
set -g set-titles-string '#S:#I.#P #W'
# Status Bar
set -g status-interval 1
set -g status-left '#[fg=green]#H#[default]'
# no line break here, it's just to long for my blog layout!
set -g status-right '#[fg=yellow]#(sysctl -n vm.loadavg)#[default] #[fg=cyan,bold]%Y-%m-%d %H:%M:%S#[default]'
# Notifying if other windows has activities
setw -g monitor-activity on
set -g visual-activity on
# Highlighting the active window in status bar
setw -g window-status-current-bg red
# Clock
setw -g clock-mode-colour green
setw -g clock-mode-style 24
#### COLOUR
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244
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 colour166 #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 colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
set -g default-terminal "screen-256color"
### REQUIRES SOLARIZED COLORS
### source ~/.solarized/tmux-colors-solarized/tmuxcolors.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment