Guest User

Untitled

a guest
Nov 21st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. # use mouse on copy mode
  2. setw -g mode-mouse on
  3. # use mouse to select pane
  4. set -g mouse-select-pane on
  5.  
  6. # scrollback buffer n lines
  7. set -g history-limit 8000
  8.  
  9. # listen for activity on all windows
  10. set -g bell-action any
  11.  
  12. # start window indexing at one instead of zero
  13. set -g base-index 1
  14.  
  15. # enable wm window titles
  16. set -g set-titles on
  17.  
  18. # enable auto renaming
  19. setw -g automatic-rename on
  20.  
  21. # wm window title string (uses statusbar variables)
  22. set -g set-titles-string "tmux:#I #W"
  23.  
  24. # Set status bar
  25. set -g status-interval 1
  26. set -g status-justify centre
  27.  
  28. set -g status-left-length 32
  29. set -g status-left '#[fg=green][#[fg=white]#S#[fg=yellow]:#[fg=white]#H#[fg=green]]'
  30.  
  31. # Inactive windows in status bar
  32. set-window-option -g window-status-format '#[fg=cyan,dim]#I#[fg=blue]:#[default]#W#[fg=grey,dim]#F'
  33.  
  34. # Current or active window in status bar
  35. set-window-option -g window-status-current-format '#[bg=white,fg=black]#I:#W#[fg=red]#F'
  36. # Right side of status bar
  37. set -g status-right '#[fg=green][#[fg=white]#T#[fg=green]][#[fg=white]%Y-%m-%d #[fg=white]%H:%M#[default]#[fg=green]]'
  38.  
  39. # look good
  40. set -g default-terminal "screen-256color"
  41.  
  42. # fix copypaste board
  43. set-option -g default-command "reattach-to-user-namespace -l zsh"
  44.  
  45. # remap prefix
  46. set -g prefix C-a
  47. unbind C-b
  48. bind C-a send-prefix
  49.  
  50. # quick pane cycling
  51. unbind ^A
  52. bind ^A select-pane -t :.+
  53. bind a send-prefix
  54.  
  55. # Remove default binding since we’re replacing
  56. unbind %
  57. bind | split-window -h
  58. bind - split-window -v
  59.  
  60. # bind copy keys as vim did
  61. setw -g mode-keys vi
  62. unbind [
  63. bind Escape copy-mode
  64. unbind p
  65. bind p paste-buffer
  66. bind-key -t vi-copy 'v' begin-selection
  67. bind-key -t vi-copy 'y' copy-selection
  68.  
  69. bind h select-pane -L
  70. bind l select-pane -R
  71. bind k select-pane -U
  72. bind j select-pane -D
  73.  
  74. #### COLOUR
  75.  
  76. # default statusbar colors
  77. set-option -g status-bg colour235 #base02
  78. set-option -g status-fg colour136 #yellow
  79. set-option -g status-attr default
  80.  
  81. # default window title colors
  82. set-window-option -g window-status-fg colour244
  83. set-window-option -g window-status-bg default
  84. #set-window-option -g window-status-attr dim
  85.  
  86. # active window title colors
  87. set-window-option -g window-status-current-fg colour166 #orange
  88. set-window-option -g window-status-current-bg default
  89. #set-window-option -g window-status-current-attr bright
  90.  
  91. # pane border
  92. set-option -g pane-active-border-fg green
  93. set-option -g pane-active-border-bg black
  94. set-option -g pane-border-fg white
  95. set-option -g pane-border-bg black
  96.  
  97. # message text
  98. set-option -g message-bg colour235 #base02
  99. set-option -g message-fg colour166 #orange
  100. set -g message-attr bright
  101.  
  102. # pane number display
  103. set-option -g display-panes-active-colour colour33 #blue
  104. set-option -g display-panes-colour colour166 #orange
  105.  
  106. # clock
  107. set-window-option -g clock-mode-colour colour64 #green
Add Comment
Please, Sign In to add comment