Guest User

Untitled

a guest
Jul 23rd, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. # Use vi keybindings in copy and choice modes
  2. setw -g mode-keys vi
  3.  
  4. # window numbering starts at 1
  5. set -g base-index 1
  6. setw -g pane-base-index 1
  7.  
  8. ## Key bindings
  9. # Split panes horizontal
  10. bind | split-window -h
  11.  
  12. # Split panes vertically
  13. bind - split-window -v
  14.  
  15. # Resizes the current pane down by 2 cells
  16. bind + resize-pane -D 2
  17. # Resizes the cureent pane up by 2 cells
  18. bind _ resize-pane -U 2
  19.  
  20. # Toggle mouse on with ctrl + b m
  21. bind m \
  22. set -g mouse on \;\
  23. display 'Mouse: ON'
  24.  
  25. # Toggle mouse off with ctrl + b M
  26. bind M \
  27. set -g mouse off \;\
  28. display 'Mouse: OFF'
  29.  
  30. # reload settings
  31. bind-key R source-file ~/.tmux.conf
  32.  
  33. ## Style
  34. # The statusbar
  35. set -g status-justify left
  36. set -g status-interval 2
  37. set -g status-position bottom
  38. set -g status-attr dim
  39. set -g status-left ''
  40. set -g status-right '#[fg=colour233,bg=colour241,bold] %m/%d/%Y #[fg=colour233,bg=colour245,bold] %H:%M:%S '
  41. set -g status-right-length 50
  42. set -g status-left-length 20
  43.  
  44. # Color scheme (Cobalt)
  45. # default statusbar colors
  46. set-option -g status-fg white
  47. set-option -g status-bg cyan
  48.  
  49. # active window title colors
  50. set-window-option -g window-status-current-fg red
  51. set-window-option -g window-status-current-bg yellow
  52.  
  53. # pane border
  54. set-option -g pane-border-fg cyan
  55. set-option -g pane-active-border-fg red
  56.  
  57. # pane number display
  58. set-option -g display-panes-active-colour red
  59. set-option -g display-panes-colour cyan
  60.  
  61. # pane label fixed
  62. set-option -g allow-rename off
  63.  
  64. # List of plugins
  65. set -g @plugin 'tmux-plugins/tpm'
  66. set -g @plugin 'tmux-plugins/tmux-sensible'
  67. set -g @plugin 'tmux-plugins/tmux-rescurrect'
  68. set -g @plugin 'jimeh/tmux-themepack'
  69.  
  70. # tmux-resurrect settings
  71. set -g @resurrect-processes 'ssh psql mysql sqlite3' # extra programs is restored
  72. set -g @resurrect-strategy-vim 'session' # save vim/neovim sessions
  73. set -g @resurrect-capture-pane-contents 'on' # enables saving and restoring tmux pane contents
  74. set -g @resurrect-save-shell-history 'on' # Restoring shell history
  75.  
  76. # tmux theme
  77. set -g @themepack 'powerline/double/cyan'
  78.  
  79. # Other examples:
  80. # set -g @plugin 'github_username/plugin_name'
  81. # set -g @plugin 'git@github.com/user/plugin'
  82. # set -g @plugin 'git@bitbucket.com/user/plugin'
  83.  
  84. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  85. run '~/.tmux/plugins/tpm/tpm'
Add Comment
Please, Sign In to add comment