.tmux.conf 808 B

12345678910111213141516171819202122232425262728293031
  1. # Synchronize windows shortcut
  2. unbind a
  3. bind a set-window-option synchronize-panes
  4. # Use | and - to split a window vertically and horizontally instead of " and % respoectively
  5. unbind '"'
  6. unbind %
  7. bind | split-window -h -c "#{pane_current_path}"
  8. bind - split-window -v -c "#{pane_current_path}"
  9. # Automatically set window title
  10. set-window-option -g automatic-rename on
  11. set-option -g set-titles on
  12. # Use r to quickly reload tmux settings
  13. unbind r
  14. bind r \
  15. source-file ~/.tmux.conf \;\
  16. display 'Reloaded tmux config'
  17. # Set the history limit so we get lots of scrollback.
  18. setw -g history-limit 50000000
  19. # switch panes using Alt-arrow without prefix
  20. bind -n M-Left select-pane -L
  21. bind -n M-Right select-pane -R
  22. bind -n M-Up select-pane -U
  23. bind -n M-Down select-pane -D
  24. # Enable mouse mode
  25. set -g mouse on