GNU&BSD
日常tips
AIX
Citrix
debian EasyConnect
自用配置文件
性能
IO问题排查
expect
vim
Gnome desktop
debian gnome vpn使用
gnome43修改登录界面缩放
wayland
屏蔽N卡驱动大版本更新
kafka
kafka-console-consumer.sh配置sasl认证
datax
shell
FreeBSD
本站点使用 MrDoc 构建
-
+
自用配置文件
## 终端复用软件 #### tmux配置 > 修改/etc/tmux.conf或者~/.tmux.conf - ##### 新版本语法 ```txt set -g prefix C-j setw -g mode-keys vi set -g base-index 1 set -g pane-base-index 1 set -g renumber-windows on #set -g set-titles on #set -g set-titles-string "#S:#I.#P #W" set -g status-left "#S[#I.#P] " set -g status-right "%A %Y-%m-%d %H:%M" #set-window-option -g automatic-rename off set-option -g allow-rename off bind y copy-mode bind v paste-buffer set -g status-style "bg=colour254, fg=colour235" set -g window-status-current-style "bg=colour141, fg=white, bold" set -g window-status-style "fg=colour235, bg=colour254" set -g window-status-activity-style "bg=red, fg=black" set -wg mode-style "bg=colour141, fg=white, bold" ``` - ##### 旧版本语法 ``` set -g prefix C-j setw -g mode-keys vi set -g base-index 1 set -g pane-base-index 1 set -g renumber-windows on #set -g set-titles on #set -g set-titles-string "#S:#I.#P #W" set -g status-left "#S[#I.#P] " set -g status-right "%A %Y-%m-%d %H:%M" #set-window-option -g automatic-rename off set-option -g allow-rename off bind y copy-mode bind v paste-buffer set -g status-bg colour254 set -g status-fg colour235 set-window-option -g window-status-current-bg colour141 set-window-option -g window-status-current-fg white set-window-option -g window-status-current-attr bold set-window-option -g window-status-bg colour254 set-window-option -g window-status-fg colour235 set-window-option -g window-status-attr none set-window-option -g window-status-activity-bg red set-window-option -g window-status-activity-fg black set-window-option -g window-status-activity-attr none set -g mode-bg colour141 set -g mode-fg white set -g mode-attr bold ``` #### screen配置 > 修改/etc/screenrc或者~/.screenrc文件 ```txt escape ^Jj bind w windowlist -b bind ^w windowlist -b hardstatus on hardstatus alwayslastline hardstatus string "%{= wk}%{wk}%-Lw%{rw} %n+%f %t %{wk}%+Lw %=%c%{= R}%{-}" #caption always "%{= wk}%{wk}%-Lw%{rw} %n+%f %t %{wk}%+Lw %=%c%{= R}%{-}" bind y copy bind v paste . ``` ## SHELL提示符 ``` PS1='[ \[\e[38;5;141m\]\h:\u:\w\[\e[0m\] ]\n\[\e[38;5;40m\]-> \[\e[0m\]' ```
major
2026年6月6日 01:01
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
PDF文档(打印)
分享
链接
类型
密码
更新密码