Skip to content

Instantly share code, notes, and snippets.

@wizonesolutions
Created August 20, 2019 13:04
Show Gist options
  • Save wizonesolutions/33b1d0f779eebb81bd866be5b6bf8451 to your computer and use it in GitHub Desktop.
Save wizonesolutions/33b1d0f779eebb81bd866be5b6bf8451 to your computer and use it in GitHub Desktop.
tmux configuration
#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 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/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