Skip to content

Instantly share code, notes, and snippets.

@satyrius
Last active June 20, 2016 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satyrius/36960800ebbf27b4f78fe517e1f0b0b8 to your computer and use it in GitHub Desktop.
Save satyrius/36960800ebbf27b4f78fe517e1f0b0b8 to your computer and use it in GitHub Desktop.
My Tmux configuration
set-window-option -g mode-keys vi
set-option -g status-keys vi
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# title
set -g set-titles on
set -g set-titles-string "#T"
# misc settings
set-window-option -g utf8 on
# mouse
set -g mouse-utf8 on
set -g mouse on
bind -t vi-copy C-WheelUpPane halfpage-up
bind -t vi-copy C-WheelDownPane halfpage-down
# statusbar
set-option -g status-bg colour0
set-option -g status-fg yellow
set-option -g status-left "(#S)"
set-option -g status-right "%d %b %H:%M"
set-window-option -g window-status-current-attr bold
set-window-option -g automatic-rename off
# Clock
set-window-option -g clock-mode-colour yellow
set-window-option -g clock-mode-style 24
set-option -g status-interval 5
set-option -g visual-activity on
set-window-option -g monitor-activity on
# clipboard
bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard 2>&1 > /dev/null'
bind C-v run 'tmux set-buffer -- "$(xclip -o -selection clipboard -d :0.0)"; tmux paste-buffer'
# scrool shift page down/page up
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# history
set-option -g history-limit 100000
# new session
bind-key "N" new-session
#### 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
# bell
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
set -g default-terminal "screen-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment