Advertisement
twodogsdave

my .tmux config

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