Skip to content

Commit 7832137

Browse files
committed
screenrc: 避免修改預設 shell 時導致 SHELL 環境變數不正確、加入 hardstatus 設定
1 parent e0848cb commit 7832137

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

screenrc

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
caption always "%{= ky}%H %{= kc}%-Lw%{= br}%n %t%{= kc}%+Lw %=%{= g}%l"
22
termcapinfo xterm*|rxvt*|kterm*|Eterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007'
33

4+
defscrollback 65536
5+
hardstatus lastline
6+
hardstatus string '%h%? users: %u%?'
7+
ignorecase on
48
vbell off
59
vbellwait 0
6-
defscrollback 65536
7-
8-
hardcopydir /home/lantw44/hardcopy
10+
zombie ^C^R
911

12+
# The first window should be a login shell
1013
deflogin on
11-
shell -bash
14+
shell -$SHELL
1215
screen
13-
title bash
14-
deflogin off
15-
16-
zombie ^C^R
1716

18-
ignorecase on
17+
# Other windows are non-login shells
18+
shell $SHELL
19+
deflogin off

0 commit comments

Comments
 (0)