forked from jrbl/skel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_.screenrc
74 lines (62 loc) · 2.51 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
# This is my personal .screenrc
#
# Commands in this file are used to set options, bind screen functions to
# keys, redefine terminal capabilities, and to automatically establish one or
# more windows at the beginning of your screen session.
#
# ------------------------------------------------------------------------------
# SCREEN SETTINGS
# ------------------------------------------------------------------------------
startup_message off
deflogin on
vbell off
defscrollback 2048
shell /bin/bash
# ------------------------------------------------------------------------------
# SCREEN KEYBINDINGS
# ------------------------------------------------------------------------------
# Remove bindings for xon/xoff; I never use them anyway
bind '^S'
bind '^Q'
bind 's'
bind 'q'
#bind 'R' colon "screen -ln rlogin faui -8^b^b^b"
bind 'P' colon "^p"
# An example of a "screen scraper" which will launch urlview on the current
# screen window
#
#bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
# on Debian backspace should send char `\177':
bindkey -k kb stuff "\177"
# ------------------------------------------------------------------------------
# TERMINAL SETTINGS
# ------------------------------------------------------------------------------
# The vt100 description does not mention "dl". *sigh*
termcapinfo vt100 dl=5\E[M
# ------------------------------------------------------------------------------
# STARTUP SCREENS
# ------------------------------------------------------------------------------
# Example of automatically running some programs in windows on screen startup.
#
# The following will open top in the first window, an ssh session to monkey
# in the next window, and then open mutt and tail in windows 8 and 9
# respectively.
#
# screen top
# screen -t monkey ssh monkey
# screen -t mail 8 mutt
# screen -t daemon 9 tail -f /var/log/daemon.log
# ------------------------------------------------------------------------------
# SCREEN SHARING
# ------------------------------------------------------------------------------
# This must be turned on to share screens
##multiuser on
# tell it root exists and can run these commands
# unfortunately +r-w "#" doesn't work here because "#" means all existing
# windows, and in .screenrc, there are no existing windows
##aclchg root +x "detach,help"
# but you need to do this interactively to make existing screen windows
# -w
##aclchg root -w "#"
# new windows get +r -w for new root users
##aclumask root+r root-w