-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
63 lines (57 loc) · 2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# escape ^T^T # Ctrl-t
defflow off # turn off stupid flow-control (also see: stty -ixon in ~/.zshrc)
altscreen on # restore window contents after "vim", etc.
ignorecase on # for searches
defscrollback 10000 # number of lines reachable via ^A<esc>
# defwrap off # screen's word wrap is not what you want
startup_message off
vbell_msg ""
defhstatus "^En:^Et"
#caption always "%{= wk} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wb}%y/%m/%d(%D) %{=b wb}%c"
hardstatus alwayslastline "%{k${SCREENCOLOR}}%H: %-Lw%{= k${SCREENCOLOR}}%50>%n%f* %t%{-}%+Lw%< %>"
defmonitor on
defutf8 on
#-----------------------------------------
# share session for pair programming
#-----------------------------------------
#multiuser on
#aclumask ${DEV_USERS}-w
#acladd ${DEV_USERS}
#-----------------------------------------
# chgange encoding
# You can change encoding with command
# C-t U or C-t E
#-----------------------------------------
bind 'U' eval "encoding utf8" "stuff 'export LANG=ja_JP.UTF-8\012'"
bind 'E' eval "encoding euc" "stuff 'export LANG=ja_JP.EUC-JP\012'"
# avoid changing window size
termcapinfo xterm-256color 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
term screen
#-----------------------------------------
# Window operation
#-----------------------------------------
# <C-a> Tab
bind j focus down
bind h focus left
bind l focus right
bind k focus up
bind t focus top
bind n focus next
bind p focus prev
# <C-a> w
bind w eval 'echo "Operate window"' 'command -c REGION'
bind -c REGION ^] command
bind -c REGION j eval 'focus down' 'command -c REGION'
bind -c REGION k eval 'focus up' 'command -c REGION'
bind -c REGION h eval 'focus left' 'command -c REGION'
bind -c REGION l eval 'focus right' 'command -c REGION'
bind -c REGION n eval 'focus next' 'command -c REGION'
bind -c REGION p eval 'focus prev' 'command -c REGION'
bind -c REGION t eval 'focus top' 'command -c REGION'
bind -c REGION b eval 'focus bottom' 'command -c REGION'
bind -c REGION + eval 'resize +1' 'command -c REGION'
bind -c REGION - eval 'resize -1' 'command -c REGION'
bind -c REGION q eval 'remove' 'command -c REGION'
bind -c REGION v eval 'split -v' 'command -c REGION'
bind -c REGION s eval 'split' 'command -c REGION'
bind -c REGION c eval 'screen' 'command -c REGION'