Skip to content

Instantly share code, notes, and snippets.

@lchanmann
Last active January 4, 2024 15:13
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 lchanmann/9468ba069c79b659d185c77c29854122 to your computer and use it in GitHub Desktop.
Save lchanmann/9468ba069c79b659d185c77c29854122 to your computer and use it in GitHub Desktop.
# tmux plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# vim mode switching delay issue (http://superuser.com/a/252717/65504)
set -s escape-time 10
set -g mouse on
# reload tmux config with <prefix>-r
bind r source-file ~/.tmux.conf \; display-message "reloaded ~/.tmux.conf"
# pane navigation
bind -n c-h select-pane -L
bind -n c-j select-pane -D
bind -n c-k select-pane -U
bind -n c-l select-pane -R
bind -n c-space rotate-window
# split window into panes
bind c-j split-window -v
bind c-l split-window -h
# move current window to right
bind -n c-] swap-window -t +1 \; next-window
# pane sync
bind y set-window-option synchronize-panes \; display-message "synchronize panes!"
# run tmux plugin manager. to install new plugins press <prefix>-i, to update <prefix>-u and to remove <prefix>-alt-u
set-environment -g path '/usr/local/bin:/bin:/usr/bin'
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment