Created
March 3, 2019 20:49
-
-
Save nouredd2/5b446fdf611f0ea0be958247b3bd8ebb to your computer and use it in GitHub Desktop.
Default configuration for tmux (goes in ~/.tmux.conf)
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
set -g default-terminal "screen-256color" | |
set -g mode-keys vi | |
set-option -g default-shell /usr/local/bin/zsh | |
set -g prefix C-q | |
unbind C-a | |
bind C-q send-prefix | |
# vim splits like switching | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# vim-like copy and paste in copy mode (for macosx) | |
bind P paste-buffer | |
bind-key -T copy-mode-vi v send-keys -X begin-selection | |
bind-key -T copy-mode-vi y send-keys -X copy-selection | |
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle | |
# for Linux use these ones! | |
# bind-key -t vi-copy 'v' begin-selection | |
# bind-key -t vi-copy 'y' copy-selection | |
# bind-key -t vi-copy 'r' rectangle-toggle | |
# list of plugins | |
set -g @plugin 'tmux-plugins/tmux-sidebar' | |
set -g @plugin 'tmux-plugins/tmux-open' | |
set -g @plugin 'tmux-plugins/tmux-copycat' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
# make sure to clone this repo first! | |
run -b '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment