dot_tmux.conf 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 black
  14. set -g status-fg white
  15. set-window-option -g window-status-current-style fg=grey,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=yellow,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. set -g status on
  31. set-option -g set-titles on
  32. set -g mouse on
  33. # set -g terminal-overrides 'xterm*:smcup@:rmcup@'
  34. # set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
  35. # set -g mouse-utf8 off
  36. bind -n S-Right next-window
  37. bind -n S-Left previous-window
  38. bind t source-file ~/.tmux.conf