-
Notifications
You must be signed in to change notification settings - Fork 0
/
screenrc
54 lines (50 loc) · 2.02 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
# .screenrc
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H ]%{g}[%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m/%d %{W}%c %{g}]'
# explanation of hardstatus string [by brackets]
# 1st segment: change attr,black/brightGreen,[,brightGreen,$HOSTNAME,],green
# 2nd segment: [,center following,
startup_message off
defscrollback 200000
#mousetrack on
#caption always
vbell off
caption string "%?%f%{= bk}%? %c%a %d %d-%m-%y %{= kb} %t%= %?%f%{=bk}%:%{= wk}%? %n "
caption splitonly
#caption always "%n(%t) : %C"
#
#Another useful step is to make more user-friendly caption. A better variant of caption would be
#
#caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
#
#Slightly more complex would be:
#
#caption always "%{= kc}%H (system load: %l)%-21=%{= .m}%D %d.%m.%Y %0c"
# turn on "nethack mode" to make status messages nethack-like
# e.g. Message on quit of copy mode
# normal mode: Copy mode - (Column ...)
# nethack mode: Welcome to the hacker's treasure zoo - (Column ...)
nethack on
# set terminal to 256 colors because 8 is terrible :/
term screen-256color
# if the above doesn't work, try below
# term xterm-256color
termcapinfo xterm ti@:te@
#termcapinfo rxvt-unicode ti@:te@ #enable shift-pgup / shift-pgdown scroll
#shelltitle "$ | bash"
#
## Toggle 'fullscreen' or not.
##
#bind f eval "caption splitonly" "hardstatus ignore"
#bind F eval "caption always" "hardstatus alwayslastline"
bind f eval "hardstatus ignore" #splitonly"
bind F eval "hardstatus alwayslastline"
#Here are several useful resizing commands for a split screen.
bind = resize = # make split windows equal
bind + resize +1 # increase current window size by one
bind - resize -1 # decrease current window size by one
bind _ resize max # maximize the current window split
# command to spawn an ephemeral docker container in a new screen window
# useful for trying out things that you don't want to clutter up command history
# or screen buffers
bind J screen -t ephemeral docker run -it --rm --privileged s3p/dockenstack:latest /bin/bash