aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2015-01-19 15:51:58 +0800
committerTing-Wei Lan <lantw44@gmail.com>2015-01-19 15:51:58 +0800
commit7832137053a1ab8a4ab49b08b2797b132469a710 (patch)
treeb666bb482ee2d15d2c1c4ba861db3f35ee2a5ab8
parente0848cbc78c72169ad87a4d0d14597e27863ac8a (diff)
downloadconfigfile-7832137053a1ab8a4ab49b08b2797b132469a710.tar
configfile-7832137053a1ab8a4ab49b08b2797b132469a710.tar.gz
configfile-7832137053a1ab8a4ab49b08b2797b132469a710.tar.bz2
configfile-7832137053a1ab8a4ab49b08b2797b132469a710.tar.lz
configfile-7832137053a1ab8a4ab49b08b2797b132469a710.tar.xz
configfile-7832137053a1ab8a4ab49b08b2797b132469a710.tar.zst
configfile-7832137053a1ab8a4ab49b08b2797b132469a710.zip
screenrc: 避免修改預設 shell 時導致 SHELL 環境變數不正確、加入 hardstatus 設定screenrc-20150119
-rw-r--r--screenrc19
1 files changed, 10 insertions, 9 deletions
diff --git a/screenrc b/screenrc
index aaebd28..41d21bb 100644
--- a/screenrc
+++ b/screenrc
@@ -1,18 +1,19 @@
caption always "%{= ky}%H %{= kc}%-Lw%{= br}%n %t%{= kc}%+Lw %=%{= g}%l"
termcapinfo xterm*|rxvt*|kterm*|Eterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007'
+defscrollback 65536
+hardstatus lastline
+hardstatus string '%h%? users: %u%?'
+ignorecase on
vbell off
vbellwait 0
-defscrollback 65536
-
-hardcopydir /home/lantw44/hardcopy
+zombie ^C^R
+# The first window should be a login shell
deflogin on
-shell -bash
+shell -$SHELL
screen
-title bash
-deflogin off
-
-zombie ^C^R
-ignorecase on
+# Other windows are non-login shells
+shell $SHELL
+deflogin off