Skip to content

Instantly share code, notes, and snippets.

@jswanner
Last active March 24, 2016 19:46
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 jswanner/9e8a809b10a8ee15d986 to your computer and use it in GitHub Desktop.
Save jswanner/9e8a809b10a8ee15d986 to your computer and use it in GitHub Desktop.
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