-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
102 lines (82 loc) · 2.84 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# http://quenenni.domainepublic.net/screenrc.txt
# http://aperiodic.net/screen/appearance, title_examples
#shell ${SHELL} # ^- makes a login shell
shelltitle "$ |shell"
vbell off
vbell_msg " *ring* "
# detach on hangup
autodetach on
# don't display copyright page
startup_message off
defscrollback 2000
#defbce on # clear background
# disable problems with 'cs' inherited from /etc/screenrc
termcapinfo xterm* cs
# scrollbars don't play nice in WSL
#termcapinfo xterm*|rxvt*|kterm*|Eterm* "ti@:te@"
termcapinfo cygwin "ti@:te@"
#termcapinfo xterm*|rxvt*|kterm*|Eterm*|cygwin "hs:ts=\E]0;:fs=\007:ds=\E]0"
#term screen-256color
hardstatus alwayslastline
hardstatus string "%{gk}%-w%{kg}%50>%n %t%{-}%+w%<"
#hardstatus string "%{-b gk}%-w%{+b kg}%50>%n %t%{-b gk}%+w"
#hardstatus string "%?%{yk}%-Lw%?%{wb}%n*%f %t%?(%u)%?%?%{yk}%+Lw%?"
#hardstatus string "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
#hardstatus string "%{.bW} %-w%{.rW}%n %t%{-}%+w %=%{..} %l | @%H | %D %c:%s %d.%m.%Y"
#caption always "%{gk}%-w%{kg}%50>%n %t%{-}%+w%<"
# alt: "%?%{= gk}%-w%?%{+r}%50>%n %t%?%{-}%+w%?"
#caption string "%{.bW}%-w%{.BW}%n %t%{-}%+w %=%{..G} %H %{..Y} %Y%m%d "
#caption string "%{= ck}%H %= %Y-%m-%d | %c"
#caption string "%{= bb}%{+b w}[ %t ] %= %Y-%m-%d | %c"
#caption string "%3n %t%? @%u%?%? [%h]%?%=%c"
# remove dangerous bindings
bind .
bind ^\
bind ^k
bind k
bind ^\
bind \\
bind ^h
bind h
bind }
bind ^}
#-------
bind ^r eval "source $HOME/.screenrc"
bind j focus down
bind k focus up
bind h focus left
bind l focus right
bind ' ' windowlist -b
# do 'ctrl-v <keypress>' in normal window to see escape codes
bindkey "^[[1;3D" prev # ALT-left arrow
bindkey "^[[1;3C" next # ALT_right arrow
bindkey -k F1 prev # F11
bindkey -k F2 next # F12
bindkey -k k1 select 1 # F1
bindkey -k k2 select 2
bindkey -k k3 select 3
bindkey -k k4 select 4
# use ctrl-Oh or F11 instead of Ctrl-a for command mode
escape ^Oo
# ALT-minus/equals to enter COPY mode
bindkey "^[-" copy
bindkey "^[=" copy
# PgUP/DN to scroll. ^b, ^f for entire pages
bindkey "^[[5~" eval copy 'stuff ^u'
bindkey "^[[6~" eval copy 'stuff ^d'
bufferfile "$HOME/.screen_exchange"
# alt: /tmp/screen-exchange-$PPID
# Optimize copy/paste in screen for usage within Cygwin
#bind "^c" writebuf "exec sh -c 'cat $HOME/.screen_exchange | unix2dos > /dev/clipboard'"
#bind "^v" eval "exec sh -c 'cat /dev/clipboard | dos2unix > /tmp/screen-exchange; screen -X readbuf'"
#bind "^v" eval "cat /dev/clipboard | dos2unix" readbuf -
# read and write screen clipboard to X clipboard.
#bind > eval writebuf "exec sh -c 'xsel -bi </tmp/screen-exchange'"
#bind < eval "exec sh -c 'xsel -bo >/tmp/screen-exchange'" readbuf
# Set the altscreen so that when you quit vi, it will go back to
# what it was before
altscreen on
deflogin off
# workaround for '0' not parsing hardstatus line
screen 1
# vim: expandtab:ts=4:sw=4