1 Star 0 Fork 0

Meng Wei/dotfiles

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.tmux.conf 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
Meng Wei 提交于 2023-10-30 12:38 . [tmux] add rgb set
# 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"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wmeng223/dotfiles.git
git@gitee.com:wmeng223/dotfiles.git
wmeng223
dotfiles
dotfiles
master

搜索帮助