Tuesday, September 26, 2006

想让screen更像个桌面么?

需要有个好的screenrc
screen的默认配置的最大问题是ctrl-A和bash里回到行首的快捷键冲突,导致要使用后者要多打一个a(ctrl-a a)。比较麻烦。
下面这个screenrc重定义了这个快捷键
而且加上了一个更漂亮的caption,有日期时间主机名等
现在terminal是否有tab功能对我来说已经无所谓了
哈哈
# ~/.screenrc
# use visual bell
vbell on
# replace ctrl-A by ctrl-O
escape ^Oo
# set a big scrolling buffer
defscrollback 5000
# Set the caption on the bottom line
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c"

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home