Guest User

Untitled

a guest
May 28th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. # remap prefix from 'C-b' to 'C-a'
  2. unbind C-b
  3. set-option -g prefix C-a
  4. bind-key C-a send-prefix
  5.  
  6. # start with window 1 (instead of 0)
  7. set -g base-index 1
  8.  
  9. # start with pane 1
  10. set -g pane-base-index 1
  11.  
  12. # split panes using | and -
  13. bind | split-window -h
  14. bind - split-window -v
  15. unbind '"'
  16. unbind %
  17.  
  18. # reload config file (change file location to your the tmux.conf you want to use)
  19. bind r source-file ~/.tmux.conf
  20.  
  21. # switch panes using Alt-arrow without prefix
  22. bind -n M-Left select-pane -L
  23. bind -n M-Right select-pane -R
  24. bind -n M-Up select-pane -U
  25. bind -n M-Down select-pane -D
  26.  
  27.  
  28. # fix pbcopy/pbpaste
  29. if 'command -v reattach-to-user-namespace >/dev/null' \
  30. 'set -gq @osx-pasteboard true'
  31.  
  32. if 'tmux show -gv @osx-clipboard' \
  33. 'set -g default-command "reattach-to-user-namespace -l $SHELL"'
  34.  
  35. # present a menu of URLs to open from the visible pane. sweet.
  36. bind-key u capture-pane \;\
  37. save-buffer /tmp/tmux-buffer \;\
  38. split-window -l 10 "urlview /tmp/tmux-buffer"
  39.  
  40. # Enable mouse mode (tmux 2.1 and above)
  41. set -g mouse on
  42.  
  43. # don't rename windows automatically
  44. set-option -g allow-rename off
  45.  
  46. ######################
  47. ### DESIGN CHANGES ###
  48. ######################
  49.  
  50. # panes
  51. set -g pane-border-fg black
  52. set -g pane-active-border-fg brightred
  53.  
  54. ## Status bar design
  55. # status line
  56. #set -g status-utf8 on
  57. set -g status-justify left
  58. set -g status-bg default
  59. set -g status-fg colour12
  60. set -g status-interval 2
  61.  
  62. # messaging
  63. set -g message-fg black
  64. set -g message-bg yellow
  65. set -g message-command-fg blue
  66. set -g message-command-bg black
  67.  
  68. #window mode
  69. setw -g mode-bg colour6
  70. setw -g mode-fg colour0
  71.  
  72. # window status
  73. setw -g window-status-format " #F#I:#W#F "
  74. setw -g window-status-current-format " #F#I:#W#F "
  75. setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
  76. setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W "
  77. setw -g window-status-current-bg colour0
  78. setw -g window-status-current-fg colour11
  79. setw -g window-status-current-attr dim
  80. setw -g window-status-bg green
  81. setw -g window-status-fg black
  82. setw -g window-status-attr reverse
  83.  
  84. # Info on left
  85. set -g status-left 'Session: #S'
  86.  
  87. # loud or quiet?
  88. set-option -g visual-activity off
  89. set-option -g visual-bell off
  90. set-option -g visual-silence off
  91. set-window-option -g monitor-activity off
  92. set-option -g bell-action none
  93.  
  94. set -g default-terminal "screen-256color"
  95.  
  96. # The modes {
  97. setw -g clock-mode-colour colour135
  98. setw -g mode-attr bold
  99. setw -g mode-fg colour196
  100. setw -g mode-bg colour238
  101.  
  102. # }
  103. # The panes {
  104.  
  105. set -g pane-border-bg colour235
  106. set -g pane-border-fg colour238
  107. set -g pane-active-border-bg colour236
  108. set -g pane-active-border-fg colour51
  109.  
  110. # }
  111. # The statusbar {
  112.  
  113. set -g status-position bottom
  114. set -g status-bg colour234
  115. set -g status-fg colour137
  116. set -g status-attr dim
  117. set -g status-left ''
  118. set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S '
  119. set -g status-right-length 50
  120. set -g status-left-length 20
  121.  
  122. setw -g window-status-current-fg colour81
  123. setw -g window-status-current-bg colour238
  124. setw -g window-status-current-attr bold
  125. setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
  126.  
  127. setw -g window-status-fg colour138
  128. setw -g window-status-bg colour235
  129. setw -g window-status-attr none
  130. setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
  131.  
  132. setw -g window-status-bell-attr bold
  133. setw -g window-status-bell-fg colour255
  134. setw -g window-status-bell-bg colour1
  135.  
  136. # }
  137. # The messages {
  138.  
  139. set -g message-attr bold
  140. set -g message-fg colour232
  141. set -g message-bg colour166
  142.  
  143. # }
Add Comment
Please, Sign In to add comment