Advertisement
Algabe

tmux.conf

Oct 23rd, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. #-------~---~----------~----------~----
  2. # .---..-.-.-..-..-..-..-.
  3. # `| |'| | | || || | > <
  4. # `-' `-'-'-'`----''-''-'
  5. #-------~---~----------~----------~----
  6. # file: $HOME/.tmux.conf
  7. #-------~---~----------~----------~----
  8. #
  9. #-------~---~----------~----------~----
  10. unbind r
  11. bind r source-file ~/.tmux.conf \; display "Reloaded!"
  12.  
  13. ## General Settings
  14. set -g set-remain-on-exit on
  15. set -g status-keys vi
  16. set -g mode-keys vi
  17. set -g base-index 1
  18.  
  19. # Sin actividad visual
  20. #set -g visual-activity on
  21. #set -g visual-bell off
  22. #set-window-option -g monitor-activity on
  23.  
  24. #-------~---~----------~----------~----
  25. # MISC SETTINGS
  26. #-------~---~----------~----------~----
  27.  
  28. # Use ZSH
  29. set -g default-shell /bin/zsh
  30. set -g default-command /bin/zsh
  31.  
  32. # Set Window Title
  33. set -g automatic-rename on
  34. set -g set-titles on
  35. set -g set-titles-string '[#S:#I #H] #W'
  36. set -g alternate-screen on
  37.  
  38. # set 256 Colors
  39. set -g default-terminal "screen-256color"
  40.  
  41. #if [[ $TERM = "rxvt-256color" ]]; then export TERM="rxvt-256color"; fi
  42.  
  43. # UTF8
  44. set -g utf8 on
  45. set-window-option -g utf8 on
  46.  
  47. # Don't close windows
  48. set -g set-remain-on-exit on
  49.  
  50. #-------~---~----------~----------~----
  51. # STATUS & MESSAGE
  52. #-------~---~----------~----------~----
  53.  
  54. set -g history-limit 10000
  55. set -g status on
  56. set -g status-utf8 on
  57. set -g status-bg default
  58. set -g status-fg black
  59. set -g status-left-length 100
  60. set -g status-left " #[fg=red]tmux #[fg=black]#H#[fg=red] >> #[fg=cyan]#(cat /proc/loadavg | cut -c 1-14) #[fg=red]>> #[fg=cyan]%d/%m/%Y %H:%M "
  61. set -g status-right-length 0
  62. set -g status-right ""
  63. set -g status-justify right
  64.  
  65. set -g message-attr underscore
  66. set -g message-fg black
  67. set -g message-bg red
  68.  
  69. # Window list
  70. set -g window-status-format '#[fg=white]#I #[fg=black]#W'
  71. set -g window-status-current-format '#[fg=cyan]#I #[fg=red]#W'
  72. set-window-option -g window-status-current-fg red
  73.  
  74. ## Panes
  75. set -g pane-border-fg black
  76. set -g pane-active-border-fg black
  77. set -g automatic-rename on
  78.  
  79. # ----------------------
  80. # set some pretty colors
  81. # ----------------------
  82. # set pane colors - hilight the active pane
  83. set-option -g pane-border-fg colour235 #base02
  84. set-option -g pane-active-border-fg colour240 #base01
  85. #set-option -g status-attr dim
  86.  
  87. # colorize messages in the command line
  88. set-option -g message-bg black #base02
  89. set-option -g message-fg brightred #orange
  90.  
  91. ## Automatic layouting
  92. bind-key -n M-c kill-pane \; select-layout
  93. bind-key -n M-n split-window \; select-layout
  94.  
  95. ## Binds
  96. set -g prefix C-a
  97.  
  98. unbind c
  99. bind c new-window
  100. bind C-c new-window
  101.  
  102. unbind &
  103. unbind q
  104. bind q kill-window
  105. bind C-q kill-window
  106.  
  107. bind x kill-pane
  108. bind C-x kill-pane
  109.  
  110. unbind l
  111. bind C-a last-window
  112.  
  113. unbind C-b
  114. bind a send-prefix
  115.  
  116. unbind n
  117. bind n next-window
  118. bind C-n next-window
  119.  
  120. unbind p
  121. bind p previous-window
  122. bind C-p previous-window
  123.  
  124. unbind d
  125. bind d detach
  126. bind C-d detach
  127.  
  128. set-option escape-time 0
  129. unbind [
  130. bind Escape copy-mode
  131.  
  132. unbind %
  133. bind a split-window -h
  134. bind C-a split-window -h
  135.  
  136. unbind "'"
  137. bind e split-window -v
  138. bind C-e split-window -v
  139.  
  140. bind h select-pane -L
  141. bind j select-pane -D
  142. bind k select-pane -U
  143. bind l select-pane -R
  144.  
  145. bind ^h resize-pane -L
  146. bind ^j resize-pane -D
  147. bind ^k resize-pane -U
  148. bind ^l resize-pane -R
  149.  
  150. bind / command-prompt "split-window 'exec man %%'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement