.tmux.conf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # -*- tmux.conf -*-
  2. #
  3. # tmux configuration file
  4. # 2011, Emmanuel Bouthenot <kolter@openics.org>
  5. #
  6. # This file is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY
  8. #
  9. ### Global settings ###
  10. #
  11. # terminal type, history size, env
  12. #
  13. set -g default-terminal "screen-256color"
  14. set -g xterm-keys on
  15. set -g history-limit 102400
  16. set -g update-environment "DISPLAY WINDOWID SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION GPG_AGENT_INFO"
  17. set -s escape-time 0
  18. set -g display-time 4000
  19. set -g focus-events on
  20. set -g aggressive-resize on
  21. ### Backport some “screen” setting ###
  22. #
  23. # the magic key is Ctrl-a instead of Ctrl-b (the default)
  24. #
  25. unbind C-b
  26. unbind l
  27. set -g prefix C-a
  28. #
  29. # Ctrl-a Ctrl-a jump to the previous window
  30. #
  31. bind-key C-a last-window
  32. ### Some shortcuts ###
  33. #
  34. # quickly reload config file
  35. #
  36. bind r source-file ~/.tmux.conf
  37. #
  38. # killing the window
  39. #
  40. bind k confirm-before kill-window
  41. #
  42. # Ctrl-a a, useful for the $SHELL
  43. #
  44. bind a send-prefix
  45. #
  46. # splitting the windows
  47. #
  48. bind h split-window
  49. bind v split-window -h
  50. #
  51. # Color Themes (managed by tpm)
  52. #
  53. set -g @plugin "arcticicestudio/nord-tmux"
  54. #
  55. # Plugins (managed by tpm)
  56. #
  57. set -g @plugin 'tmux-plugins/tmux-copycat'
  58. set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
  59. set -g @plugin 'tmux-plugins/tmux-urlview'
  60. set -g @plugin 'tmux-plugins/tmux-sidebar'
  61. #
  62. # Plugins options
  63. #
  64. set -g @sidebar-tree-command 'tree -C'
  65. set -g @sidebar-tree-pager 'less -r'
  66. set -g @sidebar-tree-width '50'
  67. #
  68. # Initialize and run tpm
  69. #
  70. run "~/.tmux/plugins/tpm/tpm"