Skip to content

Instantly share code, notes, and snippets.

@justinfay
Created April 13, 2015 16:05
Show Gist options
  • Select an option

  • Save justinfay/befbb4e0b51f4ae1879d to your computer and use it in GitHub Desktop.

Select an option

Save justinfay/befbb4e0b51f4ae1879d to your computer and use it in GitHub Desktop.
My tmux config
set-window-option -g mode-keys vi
set-window-option -g xterm-keys on
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind C-h resize-pane -L 5
bind C-j resize-pane -D 5
bind C-k resize-pane -U 5
bind C-l resize-pane -R 5
set -g default-terminal "screen-256color"
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# ----------------------
# set some pretty colors
# ----------------------
# set pane colors - hilight the active pane
#set-option -g pane-border-fg colour235 #base02
#set-option -g pane-active-border-fg "#BA0277" #base01
#set-option -g pane-active-border-bg "#000000" #base01
set -g status-justify centre # center window list for clarity
# set color for status bar
#set-option -g status-bg "#6B6B6B" #base02
#set-option -g status-fg yellow #yellow
#set-option -g status-attr dim
# show host name and IP address on left side of status bar
set -g status-left-length 70
set -g status-left "#[fg=green]: #h : #[fg=brightblue]#(curl icanhazip.com) #[fg=yellow]#(ifconfig en0 | grep 'inet ' | awk '{print \"en0 \" $2}') #(ifconfig en1 | grep 'inet ' | awk '{print \"en1 \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') "
# show session name, window & pane number, date and time on right side of
# status bar
set -g status-right-length 60
set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: %l:%M %p :: #(date -u | awk '{print $4}')::"
# colorize messages in the command line
#set-option -g message-bg black #base02
#set-option -g message-fg brightred #orange
# ----------------------------------------------------------------
# solarized colors: https://github.com/seebi/tmux-colors-solarized
# ----------------------------------------------------------------
#### COLOUR (Solarized 256)
# 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 colour17 #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
run-shell /home/justin.fay/tmuxplugins/tmux-open/open.tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment