Skip to content

Instantly share code, notes, and snippets.

@GoSteven
Created March 1, 2015 23:23
Show Gist options
  • Save GoSteven/51efd72f02ef40b09551 to your computer and use it in GitHub Desktop.
Save GoSteven/51efd72f02ef40b09551 to your computer and use it in GitHub Desktop.
tmux.conf
set-option -g default-shell /bin/zsh
# Support for 256 colors
set-option -g default-terminal "screen-256color"
# bind vi key-mapping
set-option -g status-keys vi
# vi-style controls for copy mode
set-window-option -g mode-keys vi
# large history
set-option -g history-limit 100000
# highlight status bar on activity
set-window-option -g monitor-activity on
set-option -g visual-activity on
#set-option -g visual-bell on
# automatically set window title
set-option -g automatic-rename
set-option -g allow-rename off
######## Bindings ########
# force a reload of the config file
bind r source-file ~/.tmux.conf
# Append ENV VARs to be copied into the session
set -ga update-environment " DBUS_SESSION_BUS_ADDRESS GNOME_KEYRING_CONTROL GPG_AGENT_INFO KRB5CCNAME"
# X clipboard
bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
bind C-y run "tmux show-buffer | xclip -selection clipboard"
#### COLOUR - Solarized
#
## 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 colour166
#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 black #orange
#set-window-option -g window-status-current-bg white
#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 white #blue
#set-option -g display-panes-colour colour166 #orange
#
## clock
#set-window-option -g clock-mode-colour colour64 #green
#Terminal emulator window title
set-option -g set-titles on
set-option -g set-titles-string 'tmux #S:#I.#P #W'
# Status bar
#set-option -g status-position top
set-option -g status-justify centre
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-interval 5
setw -g window-status-format "#[bg=cyan,fg=black] #I #[bg=blue,fg=brightcyan] #W "
setw -g window-status-current-format "#[bg=cyan,fg=brightwhite] #I #[bg=blue,fg=brightwhite] #W "
set -g status-justify left
set-option -g status-right '#[bg=yellow,fg=black] #H #[default] #[bg=red,fg=black] %H:%M #[default]'
set-option -g status-left ''
# Notifying if other windows has activities
set-option -g visual-activity on
set-window-option -g monitor-activity on
# Clock
set-window-option -g clock-mode-colour green
set-window-option -g clock-mode-style 24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment