Tuesday, July 15, 2008

screen的配置文件

~/.screenrc.html
 1 #
 2 # This is an example for the global screenrc file.
 3 # You may want to install this file as /usr/local/etc/screenrc.
 4 # Check config.h for the exact location.
 5 #
 6 # Flaws of termcap and standard settings are done here.
 7 #Wed 21 Sep 2011 12:20:15 AM CST
 8 
 9 #startup_message off
10 
11 #defflow on # will force screen to process ^S/^Q
12 
13 deflogin on
14 #autodetach off
15 
16 vbell on
17 vbell_msg "   Wuff  ----  Wuff!!  "
18 
19 # all termcap entries are now duplicated as terminfo entries.
20 # only difference should be the slightly modified syntax, and check for
21 # terminfo entries, that are already corected in the database.
22 # 
23 # G0    we have a SEMI-GRAPHICS-CHARACTER-MODE
24 # WS    this sequence resizes our window.
25 # cs    this sequence changes the scrollregion
26 # hs@   we have no hardware statusline. screen will only believe that
27 #       there is a hardware status line if hs,ts,fs,ds are all set.
28 # ts    to statusline
29 # fs    from statusline
30 # ds    delete statusline
31 # al    add one line
32 # AL    add multiple lines
33 # dl    delete one line
34 # DL    delete multiple lines
35 # ic    insert one char (space)
36 # IC    insert multiple chars
37 # nx    terminal uses xon/xoff
38 
39 # 256color
40 terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
41 
42 # 这是配置那个tab bar
43 hardstatus alwayslastline
44 hardstatus string "%{=b}%{b}%-w%{.BW}%10>[%n %t]%{-}%+w%< %=%{G}%C%A, %Y-%m-%d"
45 #caption always "%{=u kC} %= %-w%L>%{=b G}[:%n %t:]%{-}%52<%+w %L=" termcapinfo xterm|rxvt ti@:te@
46 # screen里面的所有进程退出,screen就自动退出
47 autodetach on # default: on
48 # 退出vim/nano之后自动刷新屏幕
49 altscreen on
50 # 启动等待,显示版本
51 msgwait 2 version
52 # 启动信息
53 startup_message off # default: on
54 # 启用beep报错
55 #vbell off
56 # 默认的shell,不设置的话就是bash
57 # shell zsh
58 ## Keybindings ##
59 # C-a改为C-l
60 #escape ^L^L
61 # F10改标题
62 bindkey -k k; title
63 # F11左边的tab
64 bindkey -k F1 prev
65 # F12右边的tab
66 bindkey -k F2 next
67 
68 #remove some stupid / dangerous key bindings
69 bind ^k
70 #bind L
71 bind ^\
72 #make them better
73 bind \\ quit
74 bind K kill
75 bind I login on
76 bind O login off
77 bind } history
78 

No comments: