| ... | ... |
@@ -1,30 +1,128 @@ |
| 1 |
-#General Settings |
|
| 2 |
-term xterm |
|
| 1 |
+# Title: .screenrc |
|
| 2 |
+# Author: Frédéric CHEVALIER <f15.chevalier@gmail.com> |
|
| 3 |
+# Version: 1.0 |
|
| 4 |
+# Created in: 2014-08-11 |
|
| 5 |
+# Modified in: 2014-08-12 |
|
| 6 |
+ |
|
| 7 |
+ |
|
| 8 |
+ |
|
| 9 |
+#==========# |
|
| 10 |
+# Versions # |
|
| 11 |
+#==========# |
|
| 12 |
+ |
|
| 13 |
+# v1.0 - 2014-08-12: huge improvement from informations get on the Internet |
|
| 14 |
+# v0.0 - 2014-08-11: creation |
|
| 15 |
+ |
|
| 16 |
+ |
|
| 17 |
+#==================# |
|
| 18 |
+# General Settings # |
|
| 19 |
+#==================# |
|
| 20 |
+ |
|
| 21 |
+# Startup message |
|
| 3 | 22 |
startup_message off |
| 23 |
+ |
|
| 24 |
+# use login shell |
|
| 25 |
+shell -${SHELL}
|
|
| 26 |
+ |
|
| 27 |
+# utf-8 |
|
| 28 |
+defutf8 on |
|
| 29 |
+ |
|
| 30 |
+# Terminal to use |
|
| 31 |
+term xterm |
|
| 32 |
+ |
|
| 33 |
+# Visual bell |
|
| 4 | 34 |
vbell off |
| 5 |
-caption always |
|
| 6 | 35 |
|
| 7 |
-#Ctrl-up, Ctrl-down to move between regions |
|
| 36 |
+# Clean screen after program usage (man, vi, etc.) |
|
| 37 |
+altscreen on |
|
| 38 |
+ |
|
| 39 |
+ |
|
| 40 |
+ |
|
| 41 |
+# Show where I am |
|
| 42 |
+#caption always |
|
| 43 |
+#caption always "%n(%t)" |
|
| 44 |
+caption always "%{kw}%3n %t%? @%u%?%? [%h]%?"
|
|
| 45 |
+ |
|
| 46 |
+ |
|
| 47 |
+# modded from billnye's .screenrc |
|
| 48 |
+hardstatus on |
|
| 49 |
+##hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} "
|
|
| 50 |
+#####hardstatus alwayslastline "%{= G}[ %{G}%H %{G}][%L=%=%{= w} %-Lw %50L>%{wk} %n*%f%t %{dw} %+Lw%= %-20=%{G}][%{B} %d %M %y %{W}%c %{G}]"
|
|
| 51 |
+hardstatus alwayslastline "%{= G}[ %{G}%H %{G}][%L=%{w}%=%-Lw%50L>%{wk}%n*%f%t%{dw}%+Lw %=%-20=%{G}][%{B} %d %M %y %{W}%c %{G}]"
|
|
| 52 |
+#hardstatus alwayslastline "%{= G}[ %{G}%H %{G}][%L=%{w}%=%-Lw%{wk}%n%f*%t%{dw}%+Lw %=%-20=%{G}][%{B} %d %M %y %{W}%c %{G}]"
|
|
| 53 |
+#hardstatus alwayslastline "%-w%{= BW}%50>%n %t%{-}%+w%<"
|
|
| 54 |
+#hardstatus alwayslastline '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%101`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}'
|
|
| 55 |
+#hardstatus alwayslastline '%{= kG}[ %{G}%H %{G}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{G}][%{B} %d %M %y %{W}%c %{G}]'
|
|
| 56 |
+#hardstatus alwayslastline '%{= kG}[ %{G}%H %{G}][%= %{= kw}%?%-Lw%?%{b}%n*%f %t%?(%u)%{w}%?%+Lw%?%?%= %{G}][%{B} %d %M %y %{W}%c %{G}]'
|
|
| 57 |
+#hardstatus alwayslastline '%{= kG}[ %{G}%H %{G}][%= %?%-Lw%{= BW}%50%n%f* %t%{-}%?%%+Lw%= %{G}][%{B} %d %M %y %{W}%c %{G}]'
|
|
| 58 |
+#hardstatus alwayslastline '%{= kG}[ %{G}%H %{G}][%= %-Lw%{= BW}%50>%n%f* %t%{-}%?%+Lw%?<%?%= %{G}]'
|
|
| 59 |
+#hardstatus alwayslastline "%{rw}%H%{wk}|%?%-Lw%?%{wb}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"
|
|
| 60 |
+ |
|
| 61 |
+ |
|
| 62 |
+ |
|
| 63 |
+#hardstatus alwayslastline "%{bw}[%{Y}%h%011=%{-}]%+01=%{Kw} %-w%50L>%{yk}%{Y.}%n%{-} %t%{-}%+w %-012=%{y} %m/%d %c"
|
|
| 64 |
+ |
|
| 65 |
+ |
|
| 66 |
+# xterm understands both im/ic and doesn't have a status line. |
|
| 67 |
+# Note: Do not specify im and ic in the real termcap/info file as |
|
| 68 |
+# some programs (e.g. vi) will not work anymore. |
|
| 69 |
+#termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l |
|
| 70 |
+#terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l |
|
| 71 |
+ |
|
| 72 |
+ |
|
| 73 |
+#termcapinfo cygwin|xterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007' |
|
| 74 |
+# Wheel used as moving cursor |
|
| 75 |
+#termcapinfo xterm* ti@:te@ |
|
| 76 |
+#termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' |
|
| 77 |
+ |
|
| 78 |
+# Resizing |
|
| 79 |
+#termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' |
|
| 80 |
+ |
|
| 81 |
+ |
|
| 82 |
+ |
|
| 83 |
+#=============# |
|
| 84 |
+# Key binding # |
|
| 85 |
+#=============# |
|
| 86 |
+ |
|
| 87 |
+# Escape/command character change to Ctrl-x (instead of Ctrl-a) |
|
| 88 |
+escape ^Xx |
|
| 89 |
+ |
|
| 90 |
+ |
|
| 91 |
+# Ctrl-up, Ctrl-down to move between regions |
|
| 8 | 92 |
bindkey "^[[1;5A" focus up |
| 9 | 93 |
bindkey "^[[1;5B" focus down |
| 10 | 94 |
|
| 11 |
-#Ctrl-left, Ctrl-right to move between windows |
|
| 12 |
-bindkey "^[[1;5C" next |
|
| 13 |
-bindkey "^[[1;5D" prev |
|
| 95 |
+# Ctrl-pgup, Ctrl-pgdown to move between windows |
|
| 96 |
+bindkey "^[[6;5~" next |
|
| 97 |
+bindkey "^[[5;5~" prev |
|
| 98 |
+#bindkey "^[[1;5C" next |
|
| 99 |
+#bindkey "^[[1;5D" prev |
|
| 100 |
+ |
|
| 101 |
+# Alt-pgup, Alt-pgdown to move window numbers |
|
| 102 |
+bindkey "^[[6;3~" number +1 |
|
| 103 |
+bindkey "^[[5;3~" number -1 |
|
| 14 | 104 |
|
| 15 |
-#F9, F10, F11 to decrease, increase, equalize region size |
|
| 105 |
+# F9, F10, F11 to decrease, increase, equalize region size |
|
| 16 | 106 |
bindkey "^[[20~" resize -1 |
| 17 | 107 |
bindkey "^[[21~" resize +1 |
| 18 | 108 |
bindkey "^[[23~" resize = |
| 19 | 109 |
|
| 20 |
-#F1, F2 to move to top/bottom region |
|
| 21 |
-#F3 to clear both regions |
|
| 22 |
-#F4 to close all windows and exit screen |
|
| 110 |
+# F1, F2 to move to top/bottom region |
|
| 111 |
+# F3 to clear both regions |
|
| 112 |
+# F4 to close all windows and exit screen |
|
| 23 | 113 |
bindkey -k k1 focus top |
| 24 | 114 |
bindkey -k k2 focus bottom |
| 25 | 115 |
bindkey -k k3 eval "clear" "focus up" "clear" "focus up" |
| 26 | 116 |
bindkey -k k4 quit |
| 27 | 117 |
|
| 28 |
-#F5 windowlist, #F6 rename window |
|
| 118 |
+# F5 windowlist, #F6 rename window |
|
| 29 | 119 |
bindkey -k k5 windowlist |
| 30 |
-bindkey -k k6 title |
|
| 120 |
+bindkey -k k6 title |
|
| 121 |
+ |
|
| 122 |
+# New window (C-a C-c) |
|
| 123 |
+bindkey ^[t stuff "screen -X cd \$PWD; screen^M" |
|
| 124 |
+#bind ^c stuff "screen -X chdir \$PWD; screen^M" |
|
| 125 |
+#bind ^c stuff "screen^M" |
|
| 126 |
+bind ^c stuff "screen -X chdir \$PWD;screen^M" |
|
| 127 |
+ |
|
| 128 |
+#bind s split |