代码拉取完成,页面将自动刷新
# File : .tmux.conf
# Author : Meng Wei <wmeng94@gmail.com>
# Date : 20.09.2022
# Last Modified Date: 30.10.2023
# Last Modified By : Meng Wei <wmeng94@gmail.com>
# number start from 1
set-option -g base-index 1
set-option -g renumber-windows on
set-option -g history-limit 200000
# Automatically rename windows to the current directory
set-window-option -g automatic-rename on
# set -g window-status-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})#F'
# set -g window-status-current-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})#F'
# set-option -g automatic-rename-format '#{b:pane_current_path}'
set-window-option -g window-status-current-format '#[fg=white,bold]** #{window_index} #[fg=green,bold]#{pane_current_command} #[fg=red]#(echo "#{pane_current_path}" | rev | cut -d'/' -f-2 | rev) #[fg=white,bold]**|'
set-window-option -g window-status-format '#[fg=white,bold]#{window_index} #[fg=green,bold]#{pane_current_command} #[fg=blue]#(echo "#{pane_current_path}" | rev | cut -d'/' -f-2 | rev) #[fg=white,bold]|'
# status bar updates every 15s by default**, change to 1s here
# (this step is optional - a lower latency might have negative battery/cpu usage impacts)
set -g status-interval 1
# status bar color config
# backgroud color
set -g status-bg '#333333'
#set -g status-bg '#006400' # darkgreen
# foretgroud color
set -g status-fg '#ffffff'
# fix Error opening terminal: tmux-256color. for MacOS Terminal(use screen-256color), not need now.
set-option default-terminal "tmux-256color"
# set-option default-terminal "screen-256color"
# neovim WARNING Neither Tc nor RGB capability set. True colors are disabled. 'termguicolors' won't work properly.
# Put this in your ~/.tmux.conf and replace XXX by your $TERM outside of tmux
# set-option -sa terminal-features ',XXX:RGB'
# set-option -sa terminal-features ',xterm-256color:RGB'
# Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。