-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_screenrc
More file actions
48 lines (41 loc) · 3.92 KB
/
dot_screenrc
File metadata and controls
48 lines (41 loc) · 3.92 KB
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
# ─────────────────────────────────────────────────────────────────────────────
# Screen configuration
# ─────────────────────────────────────────────────────────────────────────────
# Useful when SSHing to older servers that have screen but not tmux.
# For local use, prefer tmux (see ~/.tmux.conf).
# ─────────────────────────────────────────────────────────────────────────────
# Prefix key: Ctrl+J (instead of Ctrl+A which conflicts with readline)
# ─────────────────────────────────────────────────────────────────────────────
escape ^Jj
# ─────────────────────────────────────────────────────────────────────────────
# General settings
# ─────────────────────────────────────────────────────────────────────────────
startup_message off # Skip the GPL notice
defscrollback 30000 # Big scrollback buffer
autodetach on # Detach on hangup
defutf8 on # UTF-8 by default
defmonitor on # Monitor windows for activity
vbell on # Visual bell instead of audio
bell_msg "Bell in window %n"
activity "Activity in window %n"
# ─────────────────────────────────────────────────────────────────────────────
# Status line
# ─────────────────────────────────────────────────────────────────────────────
# Shows: hostname | date time | load | window list
caption always "%{=b}%{G}%H %{W}| %D %Y-%m-%d %c %{W}| %l %{W}|%{-} %-w%{+b}[%n %t]%{-b}%+w"
hardstatus alwayslastline
# ─────────────────────────────────────────────────────────────────────────────
# macOS clipboard integration
# ─────────────────────────────────────────────────────────────────────────────
# Ctrl+J b = copy screen buffer to macOS clipboard
bind b eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'"
# ─────────────────────────────────────────────────────────────────────────────
# Terminal fixes
# ─────────────────────────────────────────────────────────────────────────────
# Enable 256 colors
term screen-256color
termcapinfo xterm* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# Allow xterm scrollbar to work
termcapinfo xterm* ti@:te@
# Fix backspace
termcapinfo xterm* 'bc@:bs@'