Skip to content

Instantly share code, notes, and snippets.

@bpizzi
Last active December 15, 2015 15:49
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 bpizzi/5284660 to your computer and use it in GitHub Desktop.
Save bpizzi/5284660 to your computer and use it in GitHub Desktop.
####################### Colors
# 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 #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 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
####################### Settings
# use your mouse to select pane
set -g mouse-select-pane on
# enable scroll with the mouse
#set-option -g mouse-select-window on
#set -g mode-mouse on
set -g set-titles off
setw -g automatic-rename off
set -g prefix C-x
unbind C-b
bind C-x send-prefix
bind C-x last-window
# reload .tmux.conf file
bind r source ~/.tmux.conf
# ctrl+left/right cycles thru windows
bind-key -n C-right next
bind-key -n C-left prev
# alt+directions navigates through panes
bind-key -n M-left select-pane -L
bind-key -n M-right select-pane -R
bind-key -n M-up select-pane -U
bind-key -n M-down select-pane -D
# quit tmux
bind \ kill-server
# not active pane separator
set -g pane-border-fg colour244
set -g pane-border-bg default
# active pane separator
set -g pane-active-border-fg colour124
set -g pane-active-border-bg default
set -g status-utf8 on
set -g default-terminal "screen-256color"
####################### Powerline
set-option -g status on
set-option -g status-interval 2
set-option -g status-utf8 on
set-option -g status-justify "centre"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left "#(~/.tmux/tmux-powerline/powerline.sh left)"
set-option -g status-right "#(~/.tmux/tmux-powerline/powerline.sh right)"
#### copy/paste
unbind [
bind y copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment