dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

.tmux.conf (900B)


      1 # Use zsh as the default shell
      2 set-option -g default-shell /bin/zsh
      3 
      4 # Rebind prefix key to ctrl-a
      5 unbind C-b
      6 set -g prefix C-a
      7 bind C-a send-prefix
      8 
      9 # Open new windows and panes in the same directory as the current pane
     10 bind c new-window        -c "#{pane_current_path}"
     11 bind %   split-window -h -c "#{pane_current_path}"
     12 bind '"' split-window -v -c "#{pane_current_path}"
     13 
     14 # Switch panes with hjkl
     15 bind h select-pane -L
     16 bind j select-pane -D
     17 bind k select-pane -U
     18 bind l select-pane -R
     19 
     20 # Enable mouse for scrolling and pane switching
     21 set -g mouse on
     22 
     23 # tmux-resurrect settings
     24 # Restore vim sessions
     25 set -g @resurrect-strategy-vim 'session'
     26 
     27 # tmux-continuum settings
     28 # Restore tmux sessions on boot
     29 set -g @continuum-boot 'off'
     30 
     31 # Plugins
     32 set -g @plugin 'tmux-plugins/tmux-resurrect'
     33 set -g @plugin 'tmux-plugins/tmux-continuum'
     34 
     35 # Initialize tmux plugin manager
     36 run -b '~/.tmux/plugins/tpm/tpm'