| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,35 @@ |
| 1 |
+# Title: .screen_profile |
|
| 2 |
+# Author: Frédéric CHEVALIER <f15.chevalier@gmail.com> |
|
| 3 |
+# Version: 0.0 |
|
| 4 |
+# Created in: 2014-08-21 |
|
| 5 |
+# Modified in: |
|
| 6 |
+ |
|
| 7 |
+ |
|
| 8 |
+ |
|
| 9 |
+#==========# |
|
| 10 |
+# Comments # |
|
| 11 |
+#==========# |
|
| 12 |
+ |
|
| 13 |
+# File containing particular action related to a specific terminal |
|
| 14 |
+# Must be called at the end of the .screenrc |
|
| 15 |
+ |
|
| 16 |
+ |
|
| 17 |
+ |
|
| 18 |
+#==========# |
|
| 19 |
+# Versions # |
|
| 20 |
+#==========# |
|
| 21 |
+ |
|
| 22 |
+# v0.0 - 2014-08-21: creation |
|
| 23 |
+ |
|
| 24 |
+ |
|
| 25 |
+ |
|
| 26 |
+#================================================# |
|
| 27 |
+# User specific environment and startup programs # |
|
| 28 |
+#================================================# |
|
| 29 |
+ |
|
| 30 |
+# Start screen with specific tabs |
|
| 31 |
+screen -t cygwin |
|
| 32 |
+screen -t medusa2 bash --login -ic "medusa2" |
|
| 33 |
+screen -t medusa2 bash --login -ic "medusa2" |
|
| 34 |
+ |
|
| 35 |
+select 0 |
| ... | ... |
@@ -1,8 +1,8 @@ |
| 1 | 1 |
# Title: .screenrc |
| 2 | 2 |
# Author: Frédéric CHEVALIER <f15.chevalier@gmail.com> |
| 3 |
-# Version: 1.0 |
|
| 3 |
+# Version: 1.1 |
|
| 4 | 4 |
# Created in: 2014-08-11 |
| 5 |
-# Modified in: 2014-08-12 |
|
| 5 |
+# Modified in: 2014-08-21 |
|
| 6 | 6 |
|
| 7 | 7 |
|
| 8 | 8 |
|
| ... | ... |
@@ -10,6 +10,7 @@ |
| 10 | 10 |
# Versions # |
| 11 | 11 |
#==========# |
| 12 | 12 |
|
| 13 |
+# v1.1 - 2014-08-21: clean up / reading of .screen_profile added |
|
| 13 | 14 |
# v1.0 - 2014-08-12: huge improvement from informations get on the Internet |
| 14 | 15 |
# v0.0 - 2014-08-11: creation |
| 15 | 16 |
|
| ... | ... |
@@ -30,53 +31,29 @@ defutf8 on |
| 30 | 31 |
# Terminal to use |
| 31 | 32 |
term xterm |
| 32 | 33 |
|
| 34 |
+# Wheel used as moving cursor |
|
| 35 |
+#termcapinfo xterm* ti@:te@ |
|
| 36 |
+ |
|
| 37 |
+ |
|
| 38 |
+#-------------------# |
|
| 39 |
+# Visual parameters # |
|
| 40 |
+#-------------------# |
|
| 41 |
+ |
|
| 33 | 42 |
# Visual bell |
| 34 | 43 |
vbell off |
| 35 | 44 |
|
| 36 | 45 |
# Clean screen after program usage (man, vi, etc.) |
| 37 | 46 |
altscreen on |
| 38 | 47 |
|
| 48 |
+# Define a bigger scrollback, default is 100 lines |
|
| 49 |
+defscrollback 1024 |
|
| 39 | 50 |
|
| 40 |
- |
|
| 41 |
-# Show where I am |
|
| 42 |
-#caption always |
|
| 43 |
-#caption always "%n(%t)" |
|
| 51 |
+# Caption bar |
|
| 44 | 52 |
caption always "%{kw}%3n %t%? @%u%?%? [%h]%?"
|
| 45 | 53 |
|
| 46 |
- |
|
| 47 |
-# modded from billnye's .screenrc |
|
| 54 |
+# Hardstatus bar |
|
| 48 | 55 |
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 | 56 |
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 | 57 |
|
| 81 | 58 |
|
| 82 | 59 |
|
| ... | ... |
@@ -88,41 +65,41 @@ hardstatus alwayslastline "%{= G}[ %{G}%H %{G}][%L=%{w}%=%-Lw%50L>%{wk}%n*%f%t%{
|
| 88 | 65 |
escape ^Xx |
| 89 | 66 |
|
| 90 | 67 |
|
| 91 |
-# Ctrl-up, Ctrl-down to move between regions |
|
| 92 |
-bindkey "^[[1;5A" focus up |
|
| 93 |
-bindkey "^[[1;5B" focus down |
|
| 68 |
+# Region management |
|
| 69 |
+bindkey "^[[20~" resize -1 # F9 decrease region size |
|
| 70 |
+bindkey "^[[21~" resize +1 # F10 increase region size |
|
| 71 |
+bindkey "^[[23~" resize = # F11 equalize region size |
|
| 72 |
+ |
|
| 73 |
+bindkey "^[[1;5A" focus up # Ctrl-up: move between regions |
|
| 74 |
+bindkey "^[[1;5B" focus down # Ctrl-down: move between regions |
|
| 94 | 75 |
|
| 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 |
|
| 76 |
+bindkey -k k1 focus top # F1: move to the top region |
|
| 77 |
+bindkey -k k2 focus bottom # F2: move to the bottom region |
|
| 78 |
+bindkey -k k3 eval "clear" "focus up" "clear" "focus up" # F3: clear both regions |
|
| 100 | 79 |
|
| 101 |
-# Alt-pgup, Alt-pgdown to move window numbers |
|
| 102 |
-bindkey "^[[6;3~" number +1 |
|
| 103 |
-bindkey "^[[5;3~" number -1 |
|
| 104 | 80 |
|
| 105 |
-# F9, F10, F11 to decrease, increase, equalize region size |
|
| 106 |
-bindkey "^[[20~" resize -1 |
|
| 107 |
-bindkey "^[[21~" resize +1 |
|
| 108 |
-bindkey "^[[23~" resize = |
|
| 81 |
+# Window management |
|
| 82 |
+bindkey -k k4 quit # F4: close all windows and exit screen |
|
| 83 |
+bindkey -k k5 windowlist # F5: windowlist |
|
| 84 |
+bindkey -k k12 title # F12: rename window |
|
| 109 | 85 |
|
| 110 |
-# F1, F2 to move to top/bottom region |
|
| 111 |
-# F3 to clear both regions |
|
| 112 |
-# F4 to close all windows and exit screen |
|
| 113 |
-bindkey -k k1 focus top |
|
| 114 |
-bindkey -k k2 focus bottom |
|
| 115 |
-bindkey -k k3 eval "clear" "focus up" "clear" "focus up" |
|
| 116 |
-bindkey -k k4 quit |
|
| 86 |
+bindkey "^[[6;5~" next # Ctrl-pgup: move to the next window |
|
| 87 |
+bindkey "^[[5;5~" prev # Ctrl-pgdown: move to the previous window |
|
| 88 |
+#bindkey "^[[1;5C" next # Ctrl-right arrow: move to the next window |
|
| 89 |
+#bindkey "^[[1;5D" prev # Ctrl-left arrow: move to the previous window |
|
| 117 | 90 |
|
| 118 |
-# F5 windowlist, #F6 rename window |
|
| 119 |
-bindkey -k k5 windowlist |
|
| 120 |
-bindkey -k k6 title |
|
| 91 |
+bindkey "^[[6;3~" number +1 # Alt-pgup: move tab up (increase tab number) |
|
| 92 |
+bindkey "^[[5;3~" number -1 # Alt-pgdown: move tab down (decrease tab number) |
|
| 121 | 93 |
|
| 122 |
-# New window (C-a C-c) |
|
| 94 |
+ |
|
| 95 |
+# New window (C-x C-c) |
|
| 123 | 96 |
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 | 97 |
bind ^c stuff "screen -X chdir \$PWD;screen^M" |
| 127 | 98 |
|
| 128 |
-#bind s split |
|
| 99 |
+ |
|
| 100 |
+ |
|
| 101 |
+#==================# |
|
| 102 |
+# Specific profile # |
|
| 103 |
+#==================# |
|
| 104 |
+ |
|
| 105 |
+source "$HOME/.screen_profile" |