背景
Screen支持多屏,方便使用,默认配置下无法直观显示当前会话所有窗口,需要更改默认配置
步骤
- 进入家目录
cd ~
- 修改配置文件
vim .screenrc
- 插入下面内容
vbell off
#defencoding GBK
#encoding UTF-8 GBK
startup_message off
defscrollback 2048
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d%C%a "
shell -${SHELL}
- 保存退出,开启新的screen会话才会生效
- 终端下面一行会显示当前会话窗口