Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. # Initial setup
  2. set -g default-terminal xterm-256color
  3. set -g status-keys vi
  4.  
  5.  
  6. # Prefix
  7. unbind C-b
  8. set-option -g prefix C-a
  9. bind C-a send-prefix
  10. bind C-a send-key C-a
  11.  
  12. set -g base-index 1
  13.  
  14.  
  15. # Easy config reload
  16. bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
  17.  
  18.  
  19. # Easy clear history
  20. bind-key L clear-history
  21.  
  22.  
  23. # Lengthen the amount of time status messages are displayed
  24. set-option -g display-time 2000
  25. set-option -g display-panes-time 3000
  26.  
  27.  
  28. # Set the base-index to 1 rather than 0
  29. set -g base-index 1
  30. set-window-option -g pane-base-index 1
  31.  
  32.  
  33. # Automatically set window title
  34. set-window-option -g automatic-rename on
  35. set-option -g set-titles on
  36.  
  37. # Scrollback / pastebuffer
  38.  
  39. # Vim-style copy/paste
  40. unbind [
  41. bind y copy-mode
  42. unbind p
  43. bind p paste-buffer
  44. bind -t vi-copy v begin-selection
  45. bind -t vi-copy y copy-selection
  46. bind -t vi-copy Escape cancel
  47.  
  48.  
  49. # Window activity monitor
  50. setw -g monitor-activity on
  51. set -g visual-activity on
  52.  
  53.  
  54. # Set easier window split keys
  55. bind-key v split-window -h
  56. bind-key h split-window -v
  57.  
  58.  
  59. # Use Alt-arrow keys without prefix key to switch panes
  60. bind -n M-Left select-pane -L
  61. bind -n M-Right select-pane -R
  62. bind -n M-Up select-pane -U
  63. bind -n M-Down select-pane -D
  64.  
  65.  
  66. # Allow the arrow key to be used immediately after changing windows.
  67. set-option -g repeat-time 0
  68.  
  69. # Shift arrow to switch windows
  70. bind -n S-Left previous-window
  71. bind -n S-Right next-window
  72.  
  73.  
  74. # Double press <prefix> to move to last window
  75. bind-key C-b last-window
  76.  
  77. # No delay for escape key press
  78. set -sg escape-time 0
  79.  
  80.  
  81. # Window activity monitor
  82. setw -g monitor-activity on
  83. set -g visual-activity on
  84.  
  85.  
  86. # Mouse Mode
  87. set -g mouse on
  88. set -g mouse-resize-pane on
  89. set -g mouse-select-pane on
  90. set -g mouse-select-window on
  91. set -g history-limit 10000
  92.  
  93.  
  94. # Color scheme (Cobalt)
  95.  
  96. # default statusbar colors
  97. set-option -g status-fg white
  98. set-option -g status-bg cyan
  99.  
  100. # active window title colors
  101. set-window-option -g window-status-current-fg red
  102. set-window-option -g window-status-current-bg yellow
  103.  
  104. # pane border
  105. set-option -g pane-border-fg cyan
  106. set-option -g pane-active-border-fg red
  107.  
  108. # pane number display
  109. set-option -g display-panes-active-colour red
  110. set-option -g display-panes-colour cyan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement