Skip to content

Instantly share code, notes, and snippets.

@isindir
Created August 20, 2019 04:53
Show Gist options
  • Save isindir/f46e26e315890a5e6347aa6d7e0fa536 to your computer and use it in GitHub Desktop.
Save isindir/f46e26e315890a5e6347aa6d7e0fa536 to your computer and use it in GitHub Desktop.
tmux configuration
set-window-option -g xterm-keys on
set -g default-terminal "screen-256color"
# mac fix
bind '@' split-window -v
# unbind '"'
bind 'a' set-window-option synchronize-panes
unbind-key C-b
set -g prefix 'C-a'
bind-key 'C-a' send-prefix
set -s escape-time 0
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v
bind v split-window -h
# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment