-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreenrc
25 lines (20 loc) · 1000 Bytes
/
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
shell '/usr/bin/zsh'
# status
hardstatus off
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}]'
defscrollback 20000
startup_message off
autodetach on
# Use x scrolling mechanism.
termcapinfo xterm* ti@:te@
altscreen on # Clear screen after quitting vim
# This puts screen's clipboard in x clipboard
# http://stackoverflow.com/questions/16111548/how-to-copy-the-gnu-screen-copy-buffer-to-clipboard
bindkey -m ' ' eval 'stuff \040' 'writebuf' 'exec sh -c "/usr/bin/xsel -b < /tmp/screen-exchange"'
# Assorted hackery to enable 256 colors.
# https://wiki.archlinux.org/index.php/GNU_Screen#Use_256_colors
term xterm-256color
attrcolor b ".I" # allow bold colors - necessary for some reason
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # tell screen how to set colors. AB = background, AF=foreground
defbce on # use current bg color for erased chars