Created
August 20, 2019 13:04
-
-
Save wizonesolutions/33b1d0f779eebb81bd866be5b6bf8451 to your computer and use it in GitHub Desktop.
tmux configuration
This file contains 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 history-limit 999999999 | |
set -ga update-environment ' SSH_AUTH_SOCK SSH_ASKPASS DESKTOP_SESSION EDITOR' | |
#set-environment -g 'SSH_AUTH_SOCK' ~/.ssh/ssh_auth_sock | |
#set-environment -g 'SSH_AUTH_SOCK' /run/user/1000/keyring/ssh | |
#set-option -g default-command "reattach-to-user-namespace -l fish" | |
# # run bash first cuz fish is mean | |
# set-option -g default-shell /usr/bin/fish | |
# Just let bash set the environment, then drop to fish. | |
set-option -g default-command '/bin/bash -i -c /usr/bin/fish' | |
#bind '"' split-window -c "#{pane_current_path}" | |
#bind % split-window -h -c "#{pane_current_path}" | |
#bind c new-window -c "#{pane_current_path}" | |
set-option -g mouse on | |
set-option -g prefix C-a | |
bind -n M-PgDn select-window -n | |
bind -n M-PgUp select-window -p | |
# https://gist.github.com/spicycode/1229612 | |
# Use Alt-arrow keys without prefix key to switch panes | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# Use Alt-vim keys without prefix key to switch panes | |
bind -n M-h select-pane -L | |
bind -n M-j select-pane -D | |
bind -n M-k select-pane -U | |
bind -n M-l select-pane -R | |
set -g @resurrect-capture-pane-contents 'on' | |
set -g @resurrect-processes '~python3 /usr/bin/sshuttle' | |
set -g @continuum-boot 'on' | |
set -g @continuum-restore 'on' | |
set -g @continuum-save-interval '15' | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
# Other examples: | |
# set -g @plugin 'github_username/plugin_name' | |
# set -g @plugin '[email protected]/user/plugin' | |
# set -g @plugin '[email protected]/user/plugin' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
set -g @plugin 'tmux-plugins/tmux-copycat' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'tmux-plugins/tmux-pain-control' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run -b '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment