Skip to content

Instantly share code, notes, and snippets.

@WangYihang
Created December 13, 2018 12:29
Show Gist options
  • Save WangYihang/14d53969bb06c69612e41764a440ee7a to your computer and use it in GitHub Desktop.
Save WangYihang/14d53969bb06c69612e41764a440ee7a to your computer and use it in GitHub Desktop.
# ~/.tmux.conf
# Reload config
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded"
# Change default prefix
set -g prefix C-q
unbind C-b
bind C-q send-prefix
# Disable windows name auto changing
set-option -g allow-rename off
# Disable tmux escape time
set -sg escape-time 0
# Plugins
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
# VI mode
set-window-option -g mode-keys vi
# Switching pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# New pane use the previous path
unbind '"'
unbind '%'
bind '"' split-window -v -c '#{pane_current_path}'
bind '%' split-window -h -c '#{pane_current_path}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment