.tmux.conf 1.6 KB

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