.tmux.conf 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. ### 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 shotcuts ###
  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. ### Decoration settings ###
  46. #
  47. # some colors
  48. #
  49. set -g status-bg black
  50. set -g status-fg white
  51. #set -g set-titles-string '#H #S #I #P #W #T' # window number,program name,active (or not)
  52. #
  53. # status bar settings
  54. #
  55. set -g status-interval 60
  56. set -g status-left '#[fg=green]#(hostname)#[default] '
  57. set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=green]%H:%M %d-%m-%Y#[default] (#S)'