linux下Screen配置
背景
Screen支持多屏,方便使用,默认配置下无法直观显示当前会话所有窗口,需要更改默认配置
配置
1. 修改配置文件
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}
2. 保存退出,开启新的screen会话才会生效