dot_tmux.conf 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # tmux starts a login shell by default, which may result in multiple negative side effects:
  2. #
  3. # Users of fortune may notice that quotes are printed when creating a new
  4. # panel.
  5. #
  6. # The configuration files for login shells such as ~/.profile are interpreted
  7. # each time a new panel is created, so commands intended to be run on session
  8. # initialization (e.g. setting audio level) are executed.
  9. #
  10. # To disable this behaviour:
  11. set -g default-command "${SHELL}"
  12. set -g default-terminal "screen-256color"
  13. set -g status-bg white
  14. set -g status-fg black
  15. set-window-option -g window-status-current-style fg=black,bg=green,bright
  16. # to simulate a bell alert use: sleep 3 && echo -e "\a"
  17. set-window-option -g window-status-bell-style 'fg=black,bg=red,bright'
  18. bind-key -T copy-mode 'M-w' send-keys -X copy-pipe-and-cancel "xcopy"
  19. bind-key -T prefix ']' run "xpaste | tmux load-buffer - ; tmux paste-buffer"
  20. bind-key -T prefix 'x' kill-pane
  21. bind-key -T prefix 'X' kill-session
  22. # clear screen and scrollback history
  23. bind-key -n C-l send-keys C-l \; run 'tmux clear-history'
  24. run-shell ~/.tmux.conf.d/copycat/copycat.tmux
  25. run-shell ~/.tmux.conf.d/open/open.tmux
  26. run-shell ~/.tmux.conf.d/logging/logging.tmux
  27. run-shell ~/.tmux.conf.d/tmux-fingers/tmux-fingers.tmux
  28. set -g visual-activity on
  29. setw -g monitor-activity on
  30. setw -g window-status-activity-style fg=black,bg=yellow,bright
  31. set -g status on
  32. set-option -g set-titles on
  33. set -g mouse on
  34. # set -g terminal-overrides 'xterm*:smcup@:rmcup@'
  35. # set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
  36. # set -g mouse-utf8 off
  37. bind -n S-Right next-window
  38. bind -n S-Left previous-window
  39. bind t source-file ~/.tmux.conf