# change prefix Ctrl+ set -g prefix 'C-\' # Unbind default key prefix unbind C-b # Decrease Key Stroke Delay set -sg escape-time 1 bind | split-window -h \; select-layout even-horizontal bind - split-window -v \; select-layout even-vertical bind h select-layout even-horizontal bind v select-layout even-vertical bind e setw synchronize-panes on bind E setw synchronize-panes off unbind % bind-key % split-window -h -c "#{pane_current_path}" unbind '"' bind-key '"' split-window -v -c "#{pane_current_path}" # split pane vertically. bind v split-window -h -c "#{pane_current_path}" # split pane horizontally. bind s split-window -v -c "#{pane_current_path}" # preserve current directory bind c new-window -c "#{pane_current_path}" # Plugins set -g @plugin 'tmux-plugins/tpm' # Initialize TMUX plugin manager # (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' #=================================== # Auto start tmux and restore #=================================== # auto start terminal set -g @continuum-boot 'on' set -g @continuum-boot-options 'iterm' # auto restore tmux set -g @continuum-restore 'on'