tmux.conf 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # change the prefix from 'C-b' to 'C-a'
  2. # (remap capslock to CTRL for easy access)
  3. # unbind C-b
  4. # set -g prefix C-a
  5. # bind C-a send-prefix
  6. # start with window 1 (instead of 0)
  7. set -g base-index 1
  8. # start with pane 1
  9. set -g pane-base-index 1
  10. # split panes using | and -, make sure they open in the same path
  11. bind | split-window -h -c "#{pane_current_path}"
  12. bind - split-window -v -c "#{pane_current_path}"
  13. unbind '"'
  14. unbind %
  15. # open new windows in the current path
  16. bind c new-window -c "#{pane_current_path}"
  17. # reload config file
  18. bind r source-file ~/.tmux.conf
  19. unbind p
  20. bind p previous-window
  21. # shorten command delay
  22. set -sg escape-time 1
  23. # don't rename windows automatically
  24. set -g allow-rename off
  25. # mouse control (clickable windows, panes, resizable panes)
  26. set -g mouse on
  27. # Use Alt-arrow keys without prefix key to switch panes
  28. bind -n M-Left select-pane -L
  29. bind -n M-Right select-pane -R
  30. bind -n M-Up select-pane -U
  31. bind -n M-Down select-pane -D
  32. # enable vi mode keys
  33. set-window-option -g mode-keys vi
  34. # set default terminal mode to 256 colors
  35. set -g default-terminal "xterm-256color"
  36. set -ga terminal-overrides ",xterm-256color:Tc"
  37. # allow focus events to get through to applications running in tmux
  38. set -g focus-events on
  39. # loud or quiet?
  40. set -g visual-activity on
  41. set -g visual-bell on
  42. set -g visual-silence off
  43. setw -g monitor-activity off
  44. set -g bell-action none