-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
43 lines (35 loc) · 1.66 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
# instead Ctrl-a use Ctrl-g
# second g is used if you really need to sent Ctrl-g
escape ^Gf
# https://github.com/tpope/dotfiles/blob/master/.screenrc
startup_message off
shell -$SHELL
# ctrl+g+y copy above line
bind ^Y eval "copy" "stuff kY" "paste ."
bind y eval "copy" "stuff kY" "paste ."
defscrollback 99999
scrollback 99999
# https://unix.stackexchange.com/a/96022/150895
# bindkey ^C kill
#
# create new region ctrl-a+|
# go to next region with ctrl-a + Tab
# close a region with ctrl-a + X (windows will stay)
# bind ' ' layout next # <- actually means Ctrl-a + Space, go to next layout
# (currenyl bind ' ' next # ctrl-a + space is go to next window)
# with ctrl-a + " you can see all available windows
# ctrl-a + k is to kill window (and it's proccess)
# https://superuser.com/a/331181
# copy the screen pastbuffer to the MacOSX pastebord
# create tmp file which will be a buffer location
screen bash -c "touch /tmp/please-touch-me; exec bash"
bufferfile /tmp/please-touch-me
bindkey -m ' ' eval 'stuff \040' 'writebuf' 'exec sh -c "[ -f /usr/bin/pbcopy ] && /usr/bin/pbcopy < /tmp/please-touch-me || ([ -f /usr/bin/xsel ] && /usr/bin/xsel --clipboard --input < /tmp/please-touch-me)"'
# http://superuser.com/questions/126606/how-to-get-mac-os-x-terminal-app-and-screen-vim-scrolling-to-play-nice/316900#316900
termcapinfo xterm-256color|xterm-color|xterm|xterms|xs|rxvt ti@:te@
# Allow bold colors - necessary for some reason
attrcolor b ".I"
# Change the hardstatus settings to give an window list at the bottom of the
# screen with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}%{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}'