Skip to content

Instantly share code, notes, and snippets.

@josephcc
Created June 7, 2014 07:16
Show Gist options
  • Select an option

  • Save josephcc/616e6c285d07c00d5d9e to your computer and use it in GitHub Desktop.

Select an option

Save josephcc/616e6c285d07c00d5d9e to your computer and use it in GitHub Desktop.
# C-b to C-a
unbind C-b
set-option -g prefix C-a
set-option -g default-shell /bin/zsh
# C-a a send raw C-a
bind a send-prefix
# Alert on window notification
setw -g monitor-activity on
set -g visual-activity on
# status bar on top, 1.7+
set-option -g status-position top
# mouse
setw -g mode-mouse on
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set-option -g default-terminal screen-256color
set-option -g display-panes-colour red
set-option -g history-limit 10000
set-option -g message-bg red
set-option -g message-fg white
set-option -g pane-active-border-bg default
set-option -g pane-active-border-fg red
set-option -g pane-border-bg default
set-option -g pane-border-fg cyan
set-option -g repeat-time 500
set-option -g visual-activity off
set-option -g visual-bell on
set-option -g set-titles on
set-option -g set-titles-string ' #I-#W '
# status bar {{{
set-option -g status-utf8 on
set-option -g status-interval 5
set-option -g status-justify left
set-option -g status-left-length 20
set-option -g status-left '#[fg=white][ #[fg=red]#(hostname | cut -c1-9)#[fg=white] ] [#[default]'
set-option -g status-right '#[fg=white]][ #[fg=cyan]%B %d, %Y #[fg=white]%H:%M #[fg=white]]#[default]'
# }}}
# default status bar colors {{{
set-option -g status-attr bright
set-option -g status-keys vi
# }}}
# window modes colors {{{
set-window-option -g mode-fg white
set-window-option -g mode-bg red
set-window-option -g mode-attr bright
# }}}
# window options {{{
set-window-option -g utf8 on
set-window-option -g clock-mode-colour blue
set-window-option -g clock-mode-style 24
set-window-option -g monitor-activity on
set-window-option -g xterm-keys on
set-window-option -g automatic-rename on
set-window-option -g aggressive-resize off
set-window-option -g window-status-format ' #I-#W '
set-window-option -g window-status-current-format ' #I-#W '
# }}}
# copy mode {{{
set-window-option -g mode-keys vi
set-window-option -g mode-mouse on
set-option buffer-limit 10
unbind-key M-NPage ; bind-key -n M-NPage copy-mode
unbind-key M-PPage ; bind-key -n M-PPage copy-mode
unbind-key M-i ; bind-key -n M-i paste-buffer
## CLIPBOARD selection integration
## Requires prefix key before the command key
## Copy tmux paste buffer to CLIPBOARD
bind C-c run "tmux save-buffer - | xclip -i -selection clipboard"
##Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
bind C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
# }}}
#### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment