tmux.conf 824 B

123456789101112131415161718192021222324252627
  1. # List of plugins
  2. set -g @plugin 'tmux-plugins/tpm'
  3. set -g @plugin 'tmux-plugins/tmux-sensible'
  4. set -g @plugin 'christoomey/vim-tmux-navigator'
  5. set -g mouse on
  6. # allow scroll while in input mode
  7. bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
  8. # try to use correct colors
  9. set -g default-terminal screen-256color
  10. # reload tmux config
  11. bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
  12. # rebind some clear history command
  13. bind-key C-l send-keys C-l \; clear-history
  14. # Use vim keybindings in copy mode
  15. setw -g mode-keys vi
  16. # reattach ssh agent
  17. setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
  18. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  19. run '~/.dotfiles/external/tpm/tpm'