Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. # I'm used to C-a from the screen era
  2. unbind C-b
  3. set -g prefix C-a
  4.  
  5. # Make C-a a work
  6. bind a send-prefix
  7.  
  8. # Enable xterm-keys, allow ctrl+arrow movement
  9. set-window-option -g xterm-keys on
  10.  
  11. # Control-a Control-a goes to the last windows
  12. bind-key C-a last
  13.  
  14. # Start window number at 1, just like a keybored does
  15. set -g base-index 1
  16.  
  17. # Don't wait for escape commands
  18. set -s escape-time 0
  19.  
  20. # Don't restrict the size of the window to the smallest viewing screen
  21. #setw -g aggresive-resize on
  22.  
  23. # force a reload of the config file
  24. unbind r
  25. bind r source-file ~/.tmux.conf
  26.  
  27. # colors
  28. set -g default-terminal "screen-256color"
  29.  
  30. # rebind pane tiling
  31. bind V split-window -h
  32. bind H split-window
  33.  
  34. # quick pane cycling
  35. bind Tab select-pane -t :.+
  36.  
  37. # screen like window toggling
  38. #unbind ^A
  39. #bind ^A last-window
  40. bind [ copy-mode
  41.  
  42. # vim movement bindings
  43. set-window-option -g mode-keys vi
  44. bind h select-pane -L
  45. bind j select-pane -D
  46. bind k select-pane -U
  47. bind l select-pane -R
  48.  
  49. # split panes using | and -
  50. bind | split-window -h
  51. bind - split-window -v
  52. unbind '"'
  53. unbind %
  54. # don't rename windows automatically
  55. set-option -g allow-rename off
  56.  
  57. # Status bar
  58. # Turn the status bar on
  59. set-option -g status on
  60. # Center window list for clarity
  61. set -g status-justify centre
  62.  
  63. # Colours
  64. # Status update interval
  65. set -g status-interval 1
  66.  
  67. # Basic status bar colors
  68. set -g status-bg black
  69. set -g status-fg green
  70.  
  71. # Left side of status bar
  72. set -g status-left-bg black
  73. set -g status-left-fg red
  74. set -g status-left-length 40
  75. set -g status-left "#S #[fg=white]» #[fg=red]#I #[fg=white]#P"
  76.  
  77. # Right side of status bar
  78. set -g status-right-bg black
  79. set -g status-right-fg green
  80. set -g status-right-length 40
  81. set -g status-right "#H #[fg=white]« #[fg=red]%H:%M:%S #[fg=green]%d-%b-%y"
  82.  
  83. # Window status
  84. set -g window-status-format " #I:#W#F "
  85. set -g window-status-current-format " #I:#W#F "
  86.  
  87. # Current window status
  88. set -g window-status-current-bg blue
  89. set -g window-status-current-fg white
  90.  
  91. # Window with activity status
  92. set -g window-status-activity-bg yellow # fg and bg are flipped here due to a
  93. set -g window-status-activity-fg white # bug in tmux
  94.  
  95. # Window separator
  96. set -g window-status-separator ""
  97.  
  98. # Window status alignment
  99. set -g status-justify centre
  100.  
  101. # Pane border
  102. set -g pane-border-bg default
  103. set -g pane-border-fg default
  104.  
  105. # Active pane border
  106. set -g pane-active-border-bg default
  107. set -g pane-active-border-fg green
  108.  
  109. # Pane number indicator
  110. set -g display-panes-colour default
  111. set -g display-panes-active-colour default
  112.  
  113. # Clock mode
  114. set -g clock-mode-colour red
  115. set -g clock-mode-style 24
  116.  
  117. # Message
  118. set -g message-bg default
  119. set -g message-fg default
  120.  
  121. # Command message
  122. set -g message-command-bg default
  123. set -g message-command-fg default
  124.  
  125. # Mode
  126. set -g mode-bg red
  127. set -g mode-fg default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement