Skip to content

Instantly share code, notes, and snippets.

@huchenxucs
Created February 13, 2022 13:12
Show Gist options
  • Save huchenxucs/863dad4e61d75ba5981b4bf60e70f252 to your computer and use it in GitHub Desktop.
Save huchenxucs/863dad4e61d75ba5981b4bf60e70f252 to your computer and use it in GitHub Desktop.
tmux conf file
# open mouse mode
set-option -g mouse on
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# set window split
bind-key v split-window -h
bind-key h split-window -v
# use alt-arrow keys 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
# shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# remap prefix from 'C-b' to 'C-a'
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment