twodogsdave

.tmux.conf

Sep 21st, 2021 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. # _
  2. #| |_ _ __ ___ _ ___ __
  3. #| __| '_ ` _ \| | | \ \/ /
  4. #| |_| | | | | | |_| |> <
  5. # \__|_| |_| |_|\__,_/_/\_\
  6.  
  7. # remap prefix from 'C-b' to 'C-a'
  8. unbind C-b
  9. set-option -g prefix C-a
  10. bind-key C-a send-prefix
  11.  
  12. # shell
  13. set -g default-command /bin/bash
  14. set -g default-shell /bin/bash
  15.  
  16. # start with window 1
  17. set -g base-index 1
  18.  
  19. # start with pane 1
  20. set -g pane-base-index 1
  21.  
  22. # history
  23. set -g history-limit 10000
  24.  
  25. # enable mouse mode (tmux 2.1 and above)
  26. set -g mouse on
  27.  
  28. # splitting panes
  29. unbind %
  30. bind v split-window -h
  31. unbind '"'
  32. bind h split-window -v
  33.  
  34. # switch panes using Alt-arrow without prefix
  35. bind -n M-Left select-pane -L
  36. bind -n M-Right select-pane -R
  37. bind -n M-Up select-pane -U
  38. bind -n M-Down select-pane -D
  39.  
  40. # switching windows
  41. unbind n
  42. bind -n S-down new-window
  43. bind -n C-left prev
  44. bind -n C-right next
  45. bind -n S-left swap-window -t -1
  46. bind -n S-right swap-window -t +1
  47.  
  48. # don't rename windows automatically
  49. set-option -g allow-rename off
  50.  
  51. # reload config file
  52. bind r source-file ~/.tmux.conf \; display " Configuration reloaded."
  53.  
  54. # prevent unwanted exit with Ctrl-d
  55. set-environment -g 'IGNOREEOF' 2
  56.  
  57. # do not display the original window’s name when renaming it,
  58. # this makes renaming faster
  59. bind , command-prompt -p "(rename-window '#W')" "rename-window '%%'"
  60.  
  61. # colon :
  62. bind : command-prompt
  63.  
  64. ######################
  65. ### PRETTY COLORS ###
  66. ######################
  67.  
  68. # panes
  69. set -g pane-border-style fg=black
  70. set -g pane-active-border-style fg=red
  71.  
  72. ## Status bar design
  73. # status line
  74. set -g status-justify left
  75. set -g status-bg default
  76. set -g status-fg default
  77. set -g status-interval 2
  78. set-option -g status-style bg=default
  79.  
  80. # messaging
  81. set -g message-style fg=black
  82. set -g message-style bg=yellow
  83. set -g message-command-style fg=blue
  84. set -g message-command-style bg=black
  85.  
  86. #window mode
  87. setw -g mode-style bg=colour6
  88. setw -g mode-style fg=colour0
  89.  
  90. # window status
  91. setw -g window-status-format "#[fg=#FFFFFF] #W "
  92. setw -g window-status-current-format "#[fg=colour0] #[bg=colour2] #W "
  93. setw -g window-status-current-style dim
  94. set -g status-position bottom
  95. set -g status-justify right
  96. set -g status-left ' '
  97. set -g status-right ' '
  98.  
  99. # Info on left (I don't have a session display for now)
  100. set -g status-left ''
  101.  
  102. # loud or quiet?
  103. set-option -g visual-activity off
  104. set-option -g visual-bell off
  105. set-option -g visual-silence off
  106. set-window-option -g monitor-activity off
  107. set-option -g bell-action none
  108.  
  109. set -g default-terminal "screen-256color"
  110.  
  111. # The modes {
  112. setw -g clock-mode-colour colour166
  113. setw -g mode-style bold
  114. setw -g mode-style fg=colour196
  115. setw -g mode-style bg=colour238
  116.  
  117. # }
  118. # The panes {
  119.  
  120. set -g pane-border-style bg=colour235
  121. set -g pane-border-style fg=colour238
  122. set -g pane-active-border-style bg=colour236
  123. set -g pane-active-border-style fg=colour51
  124.  
  125. # }
  126. # The messages {
  127.  
  128. set -g message-style bold
  129. set -g message-style fg=colour232
  130. set -g message-style bg=colour166
  131.  
  132. # }
  133.  
Add Comment
Please, Sign In to add comment