Last active
January 4, 2024 15:13
-
-
Save lchanmann/9468ba069c79b659d185c77c29854122 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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