screen确实是个非常好用的会话管理工具,尤其是进行合理的配置之后,从zhixu那儿把他的配置文件拿过来用了,最好用的功能就是在底部显示所有的窗口名功能。
他里面开始用的窗口切换的快捷键是ctrl-left,ctrl-right,很方便,但右手要离开主键区,可能多少有点不方便,自己在网上搜了一下,改成了另外的方式,Alt+,/Alt+.
#bindkey "\033[1;5D" prev # change window with ctrl-left
#bindkey "\033[1;5C" next # change window with ctrl-right
bindkey "^[," prev # change window to prev with Alt-,
bindkey "^[." next # change window to next with Alt-.
bindkey "^[`" select 0
bindkey "^[1" select 1
bindkey "^[2" select 2
bindkey "^[3" select 3
bindkey "^[4" select 4
bindkey "^[5" select 5
bindkey "^[6" select 6
bindkey "^[7" select 7
bindkey "^[8" select 8
bindkey "^[9" select 9
bindkey "^[0" select 10
bindkey "^[-" select 11
bindkey "^[=" select 12
#sorendition +b kG
#caption always "%{= kb}[ %=%{w}%?%-Lw%?%{b}(%{W}%n*%f %t%?(%u)%?%{b})%{w}%?%+Lw%?%?%= %{b}][%{B} %H %{W}%l %{b}][%{B} %d.%m.%Y %{W}%0c %{b}]"
#caption always '%c:%s %3n - %t'
#displays
hardstatus on
hardstatus alwayslastline
#hardstatus string "%{=kw}%{g}[ %{G}%H %{g}] %{w}%1` %{g}[%=%{=kw}%{w}%-w%{Y}[%{W}%n-%t%{Y}]%{w}%+w%=%{g}][%l][ %{w}%Y-%m-%d %{Y}%c:%s %{g}]"
hardstatus string "%{= br}%{g}[%{G}$USER @ %H%{g}]%{w}%1`%{g}[%=%{=kw}%{w}%-w%{Y}[%{W}%n-%t%{Y}]%{w}%+w%=%{g}][%l][%{w}%Y-%m-%d %{Y}%c%{+B}:%{-}%s%{g}]"
term xterm
altscreen on
阅读(1040) | 评论(1) | 转发(0) |