Skip to content

Commit 2a4399b

Browse files
committed
add useful rc for screen.
1 parent 44a7400 commit 2a4399b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

bashrc/_screenrc

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#bind F1 to go to next window.
2+
bindkey -k k2 prev
3+
#bind F2 to move to previous window
4+
bindkey -k k3 next
5+
# bind F3 to rename a screen
6+
bindkey -k k1 title
7+
# bind F4 to new a screen session in this terminal
8+
bindkey -k k4 screen
9+
# bind F5 to detach
10+
bindkey -k k5 detach
11+
# bind F8 to enter copy mode
12+
bindkey -k k8 copy
13+
term linux
14+
setenv LC_CTYPE zh_CN.GBK
15+
setenv TERM linux
16+
#use ` as the Global Key
17+
defscrollback 10000
18+
19+
#断线的时候自动detach
20+
autodetach on
21+
22+
hardstatus alwayslastline
23+
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
24+
25+
vbell off
26+
screen bash
27+
screen bash
28+
screen bash
29+
screen bash
30+
screen bash
31+
screen bash
32+
screen bash
33+
screen bash
34+
screen bash
35+
screen bash

0 commit comments

Comments
 (0)