Advertisement
hu6

.tmux.conf

hu6
Sep 9th, 2013
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. # Unbinds
  2. # `-> these are part of the default mappings
  3. # and will get new functionality
  4. unbind i
  5. unbind l
  6. unbind s
  7. unbind w
  8.  
  9. # New Window
  10. bind n neww
  11.  
  12. # Choose Window
  13. bind m choose-window
  14.  
  15. # Toggle Statusbar
  16. bind t set status
  17.  
  18. # Select Windows Ctrl-[1-0]
  19. bind -n ^F1 select-window -t 1
  20. bind -n ^F2 select-window -t 2
  21. bind -n ^F3 select-window -t 3
  22. bind -n ^F4 select-window -t 4
  23. bind -n ^F5 select-window -t 5
  24. bind -n ^F6 select-window -t 6
  25. bind -n ^F7 select-window -t 7
  26. bind -n ^F8 select-window -t 8
  27. bind -n ^F9 select-window -t 9
  28. bind -n ^F10 select-window -t 10
  29. bind -n ^F11 select-window -t 11
  30.  
  31. bind ^h select-pane -L
  32. bind ^j select-pane -D
  33. bind ^k select-pane -U
  34. bind ^l select-pane -R
  35.  
  36. bind h resize-pane -L
  37. bind j resize-pane -D
  38. bind k resize-pane -U
  39. bind l resize-pane -R
  40.  
  41. bind F1 select-pane -t 1
  42. bind F2 select-pane -t 2
  43. bind F3 select-pane -t 3
  44. bind F4 select-pane -t 4
  45. bind F5 select-pane -t 5
  46. bind F6 select-pane -t 6
  47. bind F7 select-pane -t 7
  48. bind F8 select-pane -t 8
  49. bind F9 select-pane -t 9
  50. bind F10 select-pane -t 10
  51. bind F11 select-pane -t 11
  52.  
  53. bind i split-window -h
  54. bind s split-window
  55.  
  56. #-------~---~----------~----------~----
  57. # WINDOWS & PANES
  58. #-------~---~----------~----------~----
  59.  
  60. # Start counting at 1
  61. set -g base-index 1
  62.  
  63. set -g mouse-select-pane on
  64. setw -g automatic-rename on
  65. set -g display-panes-time 1000
  66.  
  67. # Set Window Title
  68. set-window-option -g automatic-rename on
  69. set -g set-titles on
  70. set -g set-titles-string 'tmux: #T'
  71.  
  72. # Repeat time
  73. set -g repeat-time 100
  74.  
  75. # Monitor and highlight window acitvity
  76. setw -g monitor-activity on
  77.  
  78. # UTF8
  79. setw -g utf8 on
  80. set -g status-utf8 on
  81.  
  82. #------------
  83. set -g prefix C-a
  84. unbind C-b
  85. bind C-a send-prefix
  86. setw -g mode-mouse on
  87.  
  88. # History
  89. set-option -g history-limit 10000
  90.  
  91. # Terminal emulator window title
  92. setw -g automatic-rename on
  93. set-option -g set-titles on
  94. set-option -g set-titles-string 'tmux: #W'
  95.  
  96. # Status bar
  97. set-option -g status on
  98. set-option -g status-position bottom
  99. set-option -g status-justify centre
  100. set-option -g status-bg default
  101. set-option -g status-fg black
  102. set-option -g status-interval 5
  103.  
  104. setw -g window-status-format "#[bg=black,fg=white] #I #[bg=#1B1B1B,fg=black]⮀ #[bg=#1B1B1B,fg=white]#W "
  105. setw -g window-status-current-format "#[bg=blue,fg=black] #I #[bg=default,fg=blue]⮀ #[bg=default,fg=brightblue]#W "
  106. set -g status-justify left
  107. set-option -g status-left ''
  108. set-option -g status-right ''
  109.  
  110. set -g base-index 1
  111. set -g utf8 on
  112. set -g pane-border-fg white
  113. set -g pane-active-border-fg brightwhite
  114.  
  115. # Notifications
  116. set-option -g visual-activity off
  117. set-window-option -g monitor-activity off
  118.  
  119. # Clock
  120. set-window-option -g clock-mode-colour blue
  121. set-window-option -g clock-mode-style 24
  122.  
  123. # Terminal and shell options
  124. set -g default-terminal "screen-256color"
  125. set -g default-shell /bin/bash
  126. set -g default-command /bin/bash
  127.  
  128. # Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
  129. set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
  130.  
  131. # Mouse options
  132. set-window-option -g mode-mouse on
  133. set -g mouse-select-pane on
  134. set -g mouse-resize-pane on
  135. set -g mouse-select-window on
  136.  
  137. # Message
  138. set -g message-bg white
  139. set -g message-fg brightblack
  140.  
  141. # Toggle status line
  142. bind-key Space set status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement