-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.screenrc
42 lines (31 loc) · 1013 Bytes
/
.screenrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
hardstatus off
hardstatus string "screen(@%H): %t"
termcapinfo xterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007'
#关闭启动信息和响铃
startup_message off
vbell off
#use zshell as default shell
shell zsh
#utf8
defutf8 on
#状态栏
caption always "%{=b b}%-w%{=rb db}%n %t%{-}%+w"
#caption always "%{=b}%{b}%{C}[stream]%{-} %+010=%-w%8L>%{uB .my}*%n %t%{-}%+w%-014< %-012=%{b m}%m-%d %c "
#动态窗口
hardstatus string "screen: %t"
#256色支持
term xterm-256color
defbce "on"
# 定义回滚行数
defscrollback 10000
terminfo xterm*|rxvt ti@:te@
#键绑定
bindkey -k k7 screen # bind F7 to create a new screen
bindkey -k k8 kill # bind F8 to kill current screen window
bindkey -k k9 detach # bind F9 to detach screen session
bindkey -k k2 prev # bind F1 to "move to previous window"
bindkey -k k3 next # bind F2 to "move to next window"
#启动Screen后自动打开的窗口
screen -t ssh zsh -i -c "sshh;zsh"
screen -t irssi zsh -i -c "irssi;zsh"
screen -t zsh zsh