.tmux.conf 1.6 KB

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