-
Notifications
You must be signed in to change notification settings - Fork 2
/
.screenrc
48 lines (44 loc) · 1.5 KB
/
.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
43
44
45
46
47
altscreen on # erase screen when quit apps
defutf8 on
defc1 off # treat input chars 128 ~ 159 as control functions
defflow on
vbell off
vbell_msg "Oops!"
msgwait 1
startup_message off
term "screen-256color"
attrcolor b ".I" # allow bold colors - necessary for some reason
attrcolor i "+b"
termcap xterm* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
terminfo xterm* 'Co#256:AB=\E[48;5;%p1%dm:AF=\E[38;5;%p1%dm'
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
shell $SHELL
# 使用 Ctrl+Left & Ctrl+Right 切換
bindkey ^[[1;5D prev
bindkey ^[[1;5C next
bindkey \033[D prev
bindkey \033[C next
bindkey ^[[5D prev
bindkey ^[[5C next
# encoding
defencoding utf8
encoding utf8 utf8
bind b encoding big5 big5
bind u encoding utf8 big5
# bind F7 to detach screen session (to background)
bindkey -k k7 detach
# bind F8 to kill current screen window
bindkey -k k8 kill
# bind F9 to create a new screen
bindkey -k k9 screen
# bind F10 to rename current screen window
bindkey -k k; title
bind R eval "source $HOME/.screenrc" "echo '.screenrc reloaded!'"
defbce on # erase background with current bg color
# cjkwidth off
#caption always "%{WK}%-w%<%{=B GK}%n %t%{= KW}%+w%-09="
#hardstatus alwayslastline "%{R}[ %{w}%1` %{R}]%=%{M}%e %{G}%H %{Y} %c %{R} %d/%m/%Y %{K} Load: %l %{w}"
#caption always "%{=ub .W} %n] %{=u .G} %-w%<%{=ub .y}%n %t%{=u .G}%+w "
caption always "%{=u .G} %-w%{=ub .y}%n %t%{=u .G}%+w "
hardstatus alwaysignore
hardstatus alwayslastline "%{= .K} [%l] %<%=%{= .W}@%H (%n %t) %=%{G}%e %{= .y}%Y/%m/%d%{= .m} %C %A"