.tmux.conf 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 xterm-keys on
  14. set -g history-limit 102400
  15. set -g update-environment "DISPLAY WINDOWID SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION GPG_AGENT_INFO"
  16. ### Backport some “screen” setting ###
  17. #
  18. # the magic key is Ctrl-a instead of Ctrl-b (the default)
  19. #
  20. unbind C-b
  21. unbind l
  22. set -g prefix C-a
  23. #
  24. # Ctrl-a Ctrl-a jump to the previous window
  25. #
  26. bind-key C-a last-window
  27. ### Some shortcuts ###
  28. #
  29. # quickly reload config file
  30. #
  31. bind r source-file ~/.tmux.conf
  32. #
  33. # killing the window
  34. #
  35. bind k confirm-before kill-window
  36. #
  37. # Ctrl-a a, useful for the $SHELL
  38. #
  39. bind a send-prefix
  40. #
  41. # splitting the windows
  42. #
  43. bind h split-window
  44. bind v split-window -h
  45. #
  46. # enter copy mode
  47. #
  48. unbind [
  49. bind * copy-mode
  50. ### Decoration settings ###
  51. #
  52. # some colors
  53. #
  54. set -g status-bg black
  55. set -g status-fg white
  56. #set -g set-titles-string '#H #S #I #P #W #T' # window number,program name,active (or not)
  57. set-window-option -g window-status-current-fg red
  58. set-window-option -g window-status-current-bg default
  59. #
  60. # status bar settings
  61. #
  62. set -g status-interval 60
  63. set -g status-left '#[fg=green]#(hostname)#[default] '
  64. set -g status-right "#[fg=yellow]up: #(uptime|cut -d ' ' -f 4-| sed 's/ days, /d,/ ; s/ load average: /load: /')#[default] #[fg=green]%H:%M %d-%m-%Y#[default] (#S)"
  65. set -g status-right-length 70