Guest User

Untitled

a guest
Sep 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. # Set prefix command to Ctrl-i; one of the easiest keys to reach
  2. set -g prefix C-b
  3. unbind C-a
  4.  
  5. # Reduce tmux delay for more responsiveness
  6. set -sg escape-time 1
  7.  
  8. # Window and pane index count starts in 1 rather tan 0
  9. set -g base-index 1
  10. setw -g pane-base-index 1
  11.  
  12. # Reload configuration
  13. bind r source-file ~/.tmux.conf \; display "Reloaded!"
  14.  
  15. # Binding to allow sending the prefix combination
  16. bind C-b send-prefix
  17.  
  18. # Dividers
  19. bind | split-window -h
  20. bind - split-window -v
  21.  
  22. bind h select-pane -L
  23. bind j select-pane -D
  24. bind k select-pane -U
  25. bind l select-pane -R
  26.  
  27. bind -r H resize-pane -L 5
  28. bind -r J resize-pane -D 5
  29. bind -r K resize-pane -U 5
  30. bind -r L resize-pane -R 5
  31.  
  32. # Allow mouse
  33. set -g mode-mouse on
  34. set -g mouse-select-pane on
  35. set -g mouse-resize-pane on
  36. set -g mouse-select-window on
  37.  
  38. # Set terminal colors
  39. set -g default-terminal "screen-256color"
  40.  
  41. # TMux coloring
  42. set -g status-fg white
  43. set -g status-bg black
  44.  
  45. setw -g window-status-fg cyan
  46. setw -g window-status-bg default
  47. setw -g window-status-attr dim
  48.  
  49. setw -g window-status-current-fg white
  50. setw -g window-status-current-bg red
  51. setw -g window-status-current-attr bright
  52.  
  53. set -g pane-border-fg green
  54. set -g pane-border-bg black
  55. set -g pane-active-border-fg white
  56. set -g pane-active-border-bg yellow
  57.  
  58. set -g message-fg white
  59. set -g message-bg black
  60. set -g message-attr bright
  61.  
  62. # Status bar customization
  63. set -g status-utf8 on
  64. set -g status-interval 60
  65. set -g status-justify centre
  66.  
  67. set -g status-left-length 40
  68. set -g status-left "#[fg=green]#S #[fg=yellow]#I #[fg=cyan]#P"
  69.  
  70. set -g status-right "#[fg=cyan]%d %b %R"
  71.  
  72. setw -g monitor-activity on
  73. set -g visual-activity on
  74.  
  75. # Remapping Copy mode keys to be more vim-like
  76. # setw -g mode-keys vi
  77. # unbind [
  78. # bind Escape copy-mode
  79. # unbind p
  80. # bind p paste-buffer
  81. # bind -t vi-copy 'v' begin-selection
  82. # bind -t vi-copy 'y' copy-selection
Add Comment
Please, Sign In to add comment