Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. # -- general
  2. set -g prefix C-t
  3. set -g mode-keys emacs
  4. set -q -g status-utf8 on
  5. set -g history-limit 5000
  6. set -g repeat-time 1000
  7.  
  8. # -- configure truecolor
  9. set -g default-terminal "screen-24bit" # true color
  10.  
  11. bind r source-file ~/.tmux.conf \; display 'tmux conf sourced'
  12.  
  13. # -- display
  14. setw -g automatic-rename on
  15. set -g set-titles on
  16.  
  17. set -g display-panes-time 800 # slightly longer pane indicators display time
  18. set -g display-time 1000 # slightly longer status messages display time
  19. set -g status-interval 1 # redraw status every 10 seconds
  20.  
  21. set -g monitor-activity on
  22. set -g visual-activity off
  23.  
  24. # -- navigation
  25. bind - split-window -v
  26. bind | split-window -h
  27. bind n new-window
  28. bind k kill-pane
  29. bind h select-window -t 0 # go to "home" window
  30.  
  31. # Enable mouse control (clickable windows, panes, resizable panes)
  32. set -g mouse on
  33.  
  34. bind S-Left previous-window
  35. bind S-Right next-window
  36.  
  37. bind C-f command-prompt -p "find window" "find-window %%"
  38.  
  39. # coarse resizing
  40. bind -r C-S-Up resize-pane -U 10
  41. bind -r C-S-Down resize-pane -D 10
  42. bind -r C-S-Left resize-pane -L 10
  43. bind -r C-S-Right resize-pane -R 10
  44.  
  45. # fine resizing
  46. bind -r C-M-S-Up resize-pane -U 2
  47. bind -r C-M-S-Down resize-pane -D 2
  48. bind -r C-M-S-Left resize-pane -L 2
  49. bind -r C-M-S-Right resize-pane -R 2
  50.  
  51. # ssh
  52. set -g visual-activity off
  53. set -g visual-bell off
  54. set -g visual-silence off
  55. set -g bell-action none
  56.  
  57. # modes
  58. setw -g clock-mode-colour colour5
  59. setw -g mode-style 'fg=colour1 bg=colour18 bold'
  60.  
  61. # panes
  62. set -g pane-border-style 'fg=colour19 bg=colour0'
  63. set -g pane-active-border-style 'bg=colour0 fg=colour10'
  64.  
  65. # statusbar
  66. set -g status-position bottom
  67. set -g status-justify left
  68. set -g status-style 'bg=colour18 fg=colour137 dim'
  69. set -g status-left ''
  70. set -g status-right '#H #[fg=colour233,bg=colour19] %m/%d #[fg=colour233,bg=colour8] %l:%M:%S %p '
  71. set -g status-right-length 50
  72. set -g status-left-length 20
  73.  
  74. setw -g window-status-current-style 'fg=colour33 bg=colour19 bold'
  75. setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
  76.  
  77. setw -g window-status-style 'fg=colour9 bg=colour18'
  78. setw -g window-status-format ' #I#[fg=colour249]:#[fg=colour250]#W#[fg=colour244]#F '
  79.  
  80. setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
  81.  
  82. # messages
  83. set -g message-style 'fg=colour232 bg=colour6 bold'
  84.  
  85. # git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  86. # List of plugins
  87. set -g @plugin 'tmux-plugins/tpm'
  88. set -g @plugin 'tmux-plugins/tmux-sensible'
  89.  
  90. # requires "sudo apt install fzf"
  91. set -g @plugin 'wfxr/tmux-fzf-url'
  92. set -g @fzf-url-bind 'u'
  93.  
  94. # local settings
  95. run '~/.tmux/local'
  96.  
  97. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  98. run '~/.tmux/plugins/tpm/tpm'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement