-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreenrc
83 lines (65 loc) · 2.36 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
# Automatically detach on hangup.
autodetach on # default: on
# Don't display the copyright page
startup_message off # default: on
# Affects the copying of text regions
crlf off # default: off
# Change default scrollback value for new windows
defscrollback 5000 # default: 100
# Define the time that all windows monitored for silence should
# wait before displaying a message. Default 30 seconds.
silencewait 15
# Ensures that the default shell is the same as the value of the $SHELL env variable
shell -$SHELL
# emulate .logout message
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
# Pretty status bar at the bottom.
hardstatus alwayslastline
hardstatus string "%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{Y} %m/%d %C %A %{g}]"
#hardstatus string "[ %H ][%= %?%-Lw%?(%n*%f %t%?(%u)%?)%?%+Lw%?%?%= ][ %m/%d %C %A ]"
# Let's remove some dangerous key bindings ...
bind k
bind ^k
bind .
bind ^\
bind \\
bind ^h
bind h
# ... and make them better.
bind 'K' kill
bind 'I' login on
bind 'O' login off
bind '}' history
# Resize the current region. The space will be removed from or added to
# the region below or if there's not enough space from the region above.
bind = resize =
bind + resize +3
bind - resize -3
# http://whatcodecraves.com/articles/2010/01/13/tips_of_the_day/index.html
bindkey -d ^? stuff ^H
# -d means default table, -k for termcap keyboard capaility name
# http://aperiodic.net/phil/archives/Geekery/term-function-keys.html
#bindkey -k k1 stuff ^[[11~
#bindkey -k k2 stuff ^[[12~
#bindkey -k k3 stuff ^[[13~
#bindkey -k k4 stuff ^[[14~
#bindkey -k k5 stuff ^[[15~
#bindkey -k k6 stuff ^[[16~
#bindkey -k k7 stuff ^[[17~
#bindkey -k k8 stuff ^[[18~
#bindkey -k k9 stuff ^[[19~
#bindkey -k k; stuff ^[[20~
#bindkey -k F1 stuff ^[[21~
#bindkey -k F2 stuff ^[[22~
# Time a message is displayed if screen is not disturbed by
# other activity. The dafault is 5 seconds:
msgwait 15
# change the default activity message to include a bell.
activity "Activity in %n ^G"
# Don't you want to start programs which need a DISPLAY ?
setenv DISPLAY ':0'
# Default Buffers
screen -t bash 0 bash
select 0
escape ^Oo #Use Ctrl+o as the default keystroke to interact with screen.
#This allows Ctrl+A to be used in emacs and bash emacs mode.