Skip to content

Instantly share code, notes, and snippets.

@bgourlie
Created June 24, 2015 17:36
Show Gist options
  • Save bgourlie/34283c92d966d0d372cb to your computer and use it in GitHub Desktop.
Save bgourlie/34283c92d966d0d372cb to your computer and use it in GitHub Desktop.
tmux config
# make tmux display things in 256 colors
#
# Note: this may cause some wierdness when connected to remote sessions
# that don't use/support 256 colors. Namely, backspaces emit junk
# characters, but still work.
set -g default-terminal "screen-256color"
# map Vi movement keys as pane movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes using PREFIX H, J, K, L
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# vi like movement/searching in scroll mode
setw -g mode-keys vi
set -g status-keys vi
bind-key -t vi-edit Up history-up
bind-key -t vi-edit Down history-down
# use PREFIX | to split window horizontally and PREFIX - to split vertically
bind | split-window -h
bind - split-window -v
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "RELOADED!"
# List of plugins
# Supports `github_username/repo` or full git repo URLs
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-continuum \
'
# Initializes TMUX plugin manager.
# Keep this line at the very bottom of tmux.conf.
run-shell '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment