Advertisement
Guest User

tmux config

a guest
Mar 25th, 2011
633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. # command prefix (like screen)
  2. set -g prefix C-a
  3. bind C-a send-prefix
  4.  
  5. set-window-option -g aggressive-resize
  6. set -g lock-after-time 1800
  7.  
  8. setw -g remain-on-exit on
  9. setw -g window-status-current-attr "underscore"
  10.  
  11. set-window-option -g utf8 on # utf8 support
  12.  
  13. setw -g xterm-keys on
  14. # basic settings
  15. set-window-option -g mode-keys vi # vi key
  16. set-option -g status-keys vi
  17. #set-window-option -g mode-mouse off # disable mous
  18. setw -g mode-mouse on
  19.  
  20. set-window-option -g aggressive-resize
  21.  
  22. # copy mode to escape key
  23. #unbind [
  24. bind Escape copy-mode
  25.  
  26. # move tmux copy buffer into x clipboard
  27. bind-key C-y save-buffer /tmp/tmux-buffer \; run-shell "cat /tmp/tmux-buffer | xclip"
  28.  
  29. set-option -g default-terminal “screen-256color”
  30.  
  31. # splitting and cycling
  32. set-option -g mouse-select-pane on
  33. unbind %
  34. bind + split-window -h # horizontal split
  35. unbind '"'
  36. bind _ split-window -v # vertical split
  37. bind C-j previous-window
  38. bind C-k next-window
  39.  
  40. # window title
  41. set-option -g set-titles on
  42. set-option -g set-titles-string '#S:#I.#P #W' # window number,program name,active (or not)
  43. set-window-option -g automatic-rename on # auto name
  44.  
  45. # messages
  46. #set-window-option -g mode-bg magenta
  47. #set-window-option -g mode-fg black
  48. #set-option -g message-bg magenta
  49. #set-option -g message-fg black
  50.  
  51. # No visual activity
  52. set -g visual-activity on
  53. set -g visual-bell on
  54.  
  55. #next tab
  56. #bind C-right next
  57.  
  58. #previous tab
  59. #bind C-left prev
  60. # status bar
  61. set-option -g status-utf8 on
  62. set-option -g status-justify right
  63. set-option -g status-bg black
  64. set-option -g status-fg cyan
  65. set-option -g status-interval 5
  66. set-option -g status-left-length 30
  67. set-option -g status-left '#[fg=magenta]» #[fg=blue,bold]#T#[default]'
  68. set-option -g status-right '#[fg=cyan]»» #[fg=blue,bold]###S #[fg=magenta]%R %m-%d#(acpi | cut -d ',' -f 2)#[default]'
  69. set-option -g visual-activity on
  70. set-window-option -g monitor-activity on
  71. set-window-option -g window-status-current-fg white
  72.  
  73. # clock
  74. set-window-option -g clock-mode-colour cyan
  75. set-window-option -g clock-mode-style 24
  76.  
  77. bind r source-file ~/.tmux.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement