Skip to content

Instantly share code, notes, and snippets.

Last active March 24, 2016 19:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
My tmux conf
unbind C-b
set -g prefix C-a
set -g default-terminal "screen-256color"
set -g history-limit 5000
bind C-a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# update pane creation to use current directory
unbind %
bind % split-window -h -c '#{pane_current_path}'
unbind '"'
bind '"' split-window -c '#{pane_current_path}'
# pane navigation:
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind g select-pane -t :.+
# resizing:
bind -r C-h resize-pane -L
bind -r C-j resize-pane -D
bind -r C-k resize-pane -U
bind -r C-l resize-pane -R
# window navigation:
bind H previous-window
bind J previous-window
bind K next-window
bind L next-window
bind - last-window
# 2-pane bindings
# tell other pane redo last command
unbind !
bind ! send-keys -t :.+ "!!" ^M
# status bar formatting & coloring
set-window-option -qg status-left ' #S'
set-window-option -qg status-right ' %Y-%m-%d %H:%M '
set-window-option -qg status-right-style fg=colour7,bg=colour10
set-window-option -qg status-style fg=colour7,bg=colour0
set-window-option -qg window-status-current-format " #I: #W #F "
set-window-option -qg window-status-current-style fg=colour7,bg=colour2,bold
set-window-option -qg window-status-format " #I: #W #F "
set-window-option -qg window-status-separator ""
set-window-option -qg window-status-style fg=colour14
set-window-option -qg clock-mode-colour colour2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment