tmux.conf 1.5 KB

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