-
Notifications
You must be signed in to change notification settings - Fork 14
/
.screenrc
44 lines (36 loc) · 1.2 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
# .screenrc
shell zsh
autodetach on
defkanji utf-8
defencoding utf-8
encoding utf-8 utf-8
defscrollback 10000
escape ^Jj
startup_message off
vbell off
altscreen on
sorendition "= kw"
hardstatus alwayslastline '%H %L=%{dd dw}%-w%46>%{= .w}%n %t %{= .b}%+w%-16=%{= .w}[%l]'
bind c screen zsh
bind n next
bind p prev
bind j next
bind l windowlist
bind o focus # Window switch with o
# Change character code
# ^ J U to switch EUC-JP with UTF-8 / ^ J E
bind U eval "encoding utf-8" "!!!echo 'export LANG=ja_JP.UTF-8'"
bind E eval "encoding euc" "!!!echo 'export LANG=ja_JP.EUC-JP'"
# Log setting
hardcopydir ${HOME}/screen
# Screen 256 colors
term screen-256color
# Copy on screen enters the clipboard
bindkey -m ' ' eval 'msgwait 0' 'stuff \040' writebuf 'exec !!! xclip /tmp/screen-exchange' 'msgwait 2'
bindkey -m Y eval 'msgwait 0' 'stuff Y' writebuf 'exec !!! xclip /tmp/screen-exchange' 'msgwait 2'
bindkey -m W eval 'msgwait 0' 'stuff W' writebuf 'exec !!! xclip /tmp/screen-exchange' 'msgwait 2'
bind r eval 'echo "Resize window"' 'command -c resize'
bind -c resize ^] command
bind -c resize j eval 'resize +1' 'command -c resize'
bind -c resize k eval 'resize -1' 'command -c resize'
bind | eval "split -v" focus screen