Guest User

Untitled

a guest
Sep 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. # basics
  2. set -g default-terminal "screen-256color"
  3. set -g prefix C-a
  4. set -sg escape-time 0
  5.  
  6. # let's free the original prefix
  7. unbind C-b
  8.  
  9. # make sure we can send prefix to other apps
  10. bind C-a send-prefix
  11.  
  12. # set pane and window index starts to 1
  13. set -g base-index 1
  14. setw -g pane-base-index 1
  15.  
  16. # reload the file with Prefix r
  17. bind R source-file ~/.tmux.conf \; display "Reloaded!"
  18.  
  19. # time to read status messages, etc.
  20. set -sg display-time 2000
  21.  
  22. # start a tmuxinator session
  23. unbind /
  24. bind / command-prompt "run-shell 'tmuxinator start %%'"
  25.  
  26. # Sessions
  27. unbind s
  28. unbind \;
  29. bind \; choose-session
  30.  
  31. # Windows
  32. unbind w
  33. unbind "'"
  34. bind "'" choose-window
  35. bind a last-window
  36.  
  37. # Splits
  38. unbind %
  39. bind | split-window -h
  40. bind - split-window -v
  41.  
  42. # Moving between panes
  43. bind h select-pane -L
  44. bind j select-pane -D
  45. bind k select-pane -U
  46. bind l select-pane -R
  47.  
  48. # Forward / backward windows
  49. bind -r C-h select-window -t :-
  50. bind -r C-l select-window -t :+
  51.  
  52. # Resizing
  53. bind -r H resize-pane -L 5
  54. bind -r J resize-pane -D 5
  55. bind -r K resize-pane -U 5
  56. bind -r L resize-pane -R 5
  57.  
  58. # vi mode
  59. setw -g xterm-keys on
  60. setw -g mode-keys vi
  61. set -g status-keys emacs # as I'm used to this in prompts
  62.  
  63. ## enable mouse
  64. setw -g mode-mouse on
  65. set -g mouse-select-pane on
  66. set -g mouse-select-window on
  67. set -g mouse-resize-pane on
  68. set -g mouse-utf8 on
  69.  
  70. # activity
  71. setw -g monitor-activity on
  72. set -g visual-activity on
  73. set -g visual-content on
  74.  
  75. # history
  76. set -g history-limit 8192
  77.  
  78. # copy/paste w/ system clipboard
  79. set -g default-command "reattach-to-user-namespace -l /usr/local/bin/zsh"
  80. bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
  81. bind C-v run "tmux set-buffer $(reattach-to-user-namespace pbpaste); tmux paste-buffer"
  82.  
  83. # do not allow automatic renaming
  84. setw -g automatic-rename off
  85. setw -g allow-rename off
  86. bind A command-prompt "rename-window %%"
  87.  
  88. # tmux window titling for X
  89. set -g set-titles on
  90. set -g set-titles-string '[#I] #W'
  91. setw -g window-status-format '❨#I #W #F❩'
  92. setw -g window-status-current-format '❮#I #W #F❯'
  93. setw -g window-status-attr bold
  94.  
  95. # Theme
  96. #
  97. # SOLARIZED TERMCOLOR XTERM
  98. # --------- ------------- -----
  99. # base03 brightblack 234
  100. # base02 black 235
  101. # base01 brightgreen 240
  102. # base00 brightyellow 241
  103. # base0 brightblue 244
  104. # base1 brightcyan 245
  105. # base2 white 254
  106. # base3 brightwhite 230
  107. # yellow yellow 136
  108. # orange brightred 166
  109. # red red 160
  110. # magenta magenta 125
  111. # violet brightmagenta 61
  112. # blue blue 33
  113. # cyan cyan 37
  114. # green green 64
  115.  
  116. # default statusbar
  117. set -g status-utf8 on
  118. set -g status-bg colour235
  119. set -g status-fg colour245
  120. set -g status-attr default
  121.  
  122. set -g status-left '#[bg=colour33,fg=colour254,bold] #S #[bg=colour235,fg=colour33]⮀#[default]'
  123. set -g status-right '⮃ #(whoami)@#h %Y-%m-%d %H:%M '
  124.  
  125. # default window title colors
  126. setw -g window-status-fg colour235
  127. setw -g window-status-bg default
  128. #setw -g window-status-attr dim
  129.  
  130. # active window title colors
  131. setw -g window-status-current-fg colour33
  132. setw -g window-status-current-bg default
  133. #setw -g window-status-current-attr bright
  134.  
  135. # pane border
  136. set -g pane-border-fg colour235
  137. set -g pane-active-border-fg colour240
  138.  
  139. # message text
  140. set -g message-bg colour254
  141. set -g message-fg colour240
  142. set -g message-attr bold
  143.  
  144. # command mode
  145. set -g message-command-bg colour254
  146. set -g message-command-fg colour240
  147. set -g message-command-attr bold
  148.  
  149. # pane number display
  150. set -g display-panes-active-colour colour33
  151. set -g display-panes-colour colour166
  152.  
  153. # clock
  154. setw -g clock-mode-colour colour64
Add Comment
Please, Sign In to add comment