-
Notifications
You must be signed in to change notification settings - Fork 0
/
.screenrc
41 lines (34 loc) · 1.03 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
#-*- mode: conf -*-
# Written by Ahsen Uppal
# Copyright (C) 2020, Ahsen Uppal
# All rights reserved.
escape ^jj
vbell off
vbell_msg " Bell "
startup_message off
hardstatus off
defscrollback 8192
bind s
bind x
bind ^X
# emacs-like bindings for copy mode
bindkey -m "^B" stuff h
bindkey -m "^F" stuff l
bindkey -m "^E" stuff $
bindkey -m "^V" stuff ^F
bindkey -m "^U" stuff ^B
bindkey -m "^ " stuff " "
bindkey -m "^[f" stuff e
bindkey -m "^[b" stuff b
# otherwise, you must hit escape to break an i-search
bindkey -m "^G" stuff ^[
#bindkey -m "^[w" stuff "^M"
term screen-256color
bell_msg "Bell in window %n ^G"
nonblock on
# Attempt copy to clipboard integration.
bufferfile $HOME/.screen_exchange
# Work around all sorts of bugs.
# Use osc52 instead of xclip even when $DISPLAY is set becuase xclip is subject to
# timing problems when the shell exits quickly.
bindkey -m "^[w" eval "stuff \" \"" "writebuf" "screen $SHELL -c 'source ~/dotfiles/copy_clipboard.sh ; CUTBUFFER=$(cat ~/.screen_exchange) && copy_osc52 ; rm ~/.screen_exchange'"