Browse code

Screen improvements

screenrc - v1.8 - Behavior updated
screen_profile (heron) - v0.2 - Default tab updated
See Versions section of each file for details

Fred authored on04/03/2020 22:30:11
Showing1 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 # Title: .screenrc
2 2
 # Author: Frédéric CHEVALIER <f15.chevalier@gmail.com>
3
-# Version: 1.7
3
+# Version: 1.8
4 4
 # Created in: 2014-08-11
5
-# Modified in: 2016-07-18
5
+# Modified in: 2020-03-04
6 6
 
7 7
 
8 8
 
... ...
@@ -10,6 +10,7 @@
10 10
 # Versions #
11 11
 #==========#
12 12
 
13
+# v1.8 - 2020-03-04: specific behavior in conda env added / new tab creation improved
13 14
 # v1.7 - 2016-07-18: ctrl-up and ctrl-down binding removed due to conflict with .inputrc
14 15
 # v1.6 - 2015-08-17: session name added to caption bar
15 16
 # v1.5 - 2015-05-27: modification of caption bar because of bad support of accentuated characters
... ...
@@ -98,10 +99,8 @@ bind o prev                 # Ctrl-x (x) o: move to the previous window
98 99
 bindkey "^[[6;3~" number +1 # Alt-pgup: move tab up (increase tab number)
99 100
 bindkey "^[[5;3~" number -1 # Alt-pgdown: move tab down (decrease tab number)
100 101
 
101
-
102 102
 # New window (C-x C-c)
103
-bindkey ^[t stuff "screen -X cd \$PWD; screen^M"
104
-bind ^c stuff "screen -X chdir \$PWD;screen^M"
103
+bind ^c stuff "screen -X chdir \$PWD ; [[ -n \$CONDA_DEFAULT_ENV ]] && screen -X setenv CONDA_DEFAULT_ENV \$CONDA_DEFAULT_ENV ; screen ; tput cuu1 ; tput el\n"
105 104
 
106 105
 
107 106
 
Browse code

screenrc - v1.7 - Update due to inputrc conflict

Fred authored on18/07/2016 23:30:13
Showing1 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 # Title: .screenrc
2 2
 # Author: Frédéric CHEVALIER <f15.chevalier@gmail.com>
3
-# Version: 1.6
3
+# Version: 1.7
4 4
 # Created in: 2014-08-11
5
-# Modified in: 2015-08-17
5
+# Modified in: 2016-07-18
6 6
 
7 7
 
8 8
 
... ...
@@ -10,6 +10,7 @@
10 10
 # Versions #
11 11
 #==========#
12 12
 
13
+# v1.7 - 2016-07-18: ctrl-up and ctrl-down binding removed due to conflict with .inputrc
13 14
 # v1.6 - 2015-08-17: session name added to caption bar
14 15
 # v1.5 - 2015-05-27: modification of caption bar because of bad support of accentuated characters
15 16
 # v1.4 - 2015-03-01: scrollback value increased / date field modified in hardstatus due to size problem in month short name between French and English
... ...
@@ -21,16 +22,16 @@
21 22
 
22 23
 
23 24
 #==================#
24
-# General Settings #
25
+# General settings #
25 26
 #==================#
26 27
 
27 28
 # Startup message
28 29
 startup_message off
29 30
 
30
-# use login shell
31
+# Use login shell
31 32
 shell -${SHELL}
32 33
 
33
-# utf-8
34
+# UTF-8
34 35
 defutf8 on
35 36
 
36 37
 # Terminal to use
... ...
@@ -76,8 +77,8 @@ bindkey "^[[20~" resize -1  # F9 decrease region size
76 77
 bindkey "^[[21~" resize +1  # F10 increase region size
77 78
 bindkey "^[[23~" resize =   # F11 equalize region size
78 79
 
79
-bindkey "^[[1;5A" focus up      # Ctrl-up: move between regions
80
-bindkey "^[[1;5B" focus down    # Ctrl-down: move between regions
80
+#bindkey "^[[1;5A" focus up      # Ctrl-up: move between regions
81
+#bindkey "^[[1;5B" focus down    # Ctrl-down: move between regions
81 82
 
82 83
 bindkey -k k1 focus top     # F1: move to the top region
83 84
 bindkey -k k2 focus bottom  # F2: move to the bottom region
... ...
@@ -91,8 +92,8 @@ bindkey -k F2 title         # F12: rename window
91 92
 
92 93
 bindkey "^[[6;5~" next      # Ctrl-pgup: move to the next window
93 94
 bindkey "^[[5;5~" prev      # Ctrl-pgdown: move to the previous window
94
-bind p next     # C-x (x)  p: move to the next window
95
-bind o prev     # C-x (x) o: move to the previous window
95
+bind p next                 # Ctrl-x (x) p: move to the next window
96
+bind o prev                 # Ctrl-x (x) o: move to the previous window
96 97
 
97 98
 bindkey "^[[6;3~" number +1 # Alt-pgup: move tab up (increase tab number)
98 99
 bindkey "^[[5;3~" number -1 # Alt-pgdown: move tab down (decrease tab number)
Browse code

screenrc - v1.6 - Add session name to caption bar

Fred authored on17/08/2015 23:48:12
Showing1 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 # Title: .screenrc
2 2
 # Author: Frédéric CHEVALIER <f15.chevalier@gmail.com>
3
-# Version: 1.5
3
+# Version: 1.6
4 4
 # Created in: 2014-08-11
5
-# Modified in: 2015-05-27
5
+# Modified in: 2015-08-17
6 6
 
7 7
 
8 8
 
... ...
@@ -10,6 +10,7 @@
10 10
 # Versions #
11 11
 #==========#
12 12
 
13
+# v1.6 - 2015-08-17: session name added to caption bar
13 14
 # v1.5 - 2015-05-27: modification of caption bar because of bad support of accentuated characters
14 15
 # v1.4 - 2015-03-01: scrollback value increased / date field modified in hardstatus due to size problem in month short name between French and English
15 16
 # v1.3 - 2014-09-30: new key binding for moving between screens when in intricate screen session
... ...
@@ -54,7 +55,7 @@ defscrollback 10000
54 55
 
55 56
 # Caption bar
56 57
 #caption always "%{kw}%3n %t%? @%u%?%? [%h]%?"
57
-caption always "%{kw}%3n %t%? @%u%?%?"
58
+caption always "%{kw}%3n %t%? @%u%?%? %= session: %S "
58 59
 
59 60
 # Hardstatus bar
60 61
 hardstatus on
Browse code

Screen improvements

screenrc - v1.5 - see Versions section for details
screen_profile (heron) - v0.1 - see Versions section for details

Fred authored on27/05/2015 23:19:59
Showing1 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 # Title: .screenrc
2 2
 # Author: Frédéric CHEVALIER <f15.chevalier@gmail.com>
3
-# Version: 1.4
3
+# Version: 1.5
4 4
 # Created in: 2014-08-11
5
-# Modified in: 2015-03-01
5
+# Modified in: 2015-05-27
6 6
 
7 7
 
8 8
 
... ...
@@ -10,6 +10,7 @@
10 10
 # Versions #
11 11
 #==========#
12 12
 
13
+# v1.5 - 2015-05-27: modification of caption bar because of bad support of accentuated characters
13 14
 # v1.4 - 2015-03-01: scrollback value increased / date field modified in hardstatus due to size problem in month short name between French and English
14 15
 # v1.3 - 2014-09-30: new key binding for moving between screens when in intricate screen session
15 16
 # v1.2 - 2014-09-02: correction of a minor bug on key binding for renaming
... ...
@@ -52,7 +53,8 @@ altscreen on
52 53
 defscrollback 10000
53 54
 
54 55
 # Caption bar
55
-caption always "%{kw}%3n %t%? @%u%?%? [%h]%?"
56
+#caption always "%{kw}%3n %t%? @%u%?%? [%h]%?"
57
+caption always "%{kw}%3n %t%? @%u%?%?"
56 58
 
57 59
 # Hardstatus bar
58 60
 hardstatus on
Browse code

screenrc - v1.4 - Improve scrollback

Fred authored on01/03/2015 00:24:11
Showing1 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 # Title: .screenrc
2 2
 # Author: Frédéric CHEVALIER <f15.chevalier@gmail.com>
3
-# Version: 1.3
3
+# Version: 1.4
4 4
 # Created in: 2014-08-11
5
-# Modified in: 2014-09-30
5
+# Modified in: 2015-03-01
6 6
 
7 7
 
8 8
 
... ...
@@ -10,6 +10,7 @@
10 10
 # Versions #
11 11
 #==========#
12 12
 
13
+# v1.4 - 2015-03-01: scrollback value increased / date field modified in hardstatus due to size problem in month short name between French and English
13 14
 # v1.3 - 2014-09-30: new key binding for moving between screens when in intricate screen session
14 15
 # v1.2 - 2014-09-02: correction of a minor bug on key binding for renaming
15 16
 # v1.1 - 2014-08-21: clean up / reading of .screen_profile added
... ...
@@ -48,14 +49,14 @@ vbell off
48 49
 altscreen on
49 50
 
50 51
 # Define a bigger scrollback, default is 100 lines
51
-defscrollback 1024
52
+defscrollback 10000
52 53
 
53 54
 # Caption bar
54 55
 caption always "%{kw}%3n %t%? @%u%?%? [%h]%?"
55 56
 
56 57
 # Hardstatus bar
57 58
 hardstatus on
58
-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}]"
59
+hardstatus alwayslastline "%{= G}[ %{G}%H %{G}][%L=%{w}%=%-Lw%50L>%{wk}%n*%f%t%{dw}%+Lw %=%-21=%{G}][%{B} %Y-%m-%d %{W}%c %{G}]"
59 60
 
60 61
 
61 62
 
Browse code

Screen improvements

screenrc - v1.3 - see Versions section for details
screen_profile (cygwin) - v0.1 - see Versions section for details
screen_profile (heron) - v0.0 - see Versions section for details
bash_profile (heron) - v1.5 - see Versions section for details

Fred authored on30/09/2014 18:30:15
Showing1 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 # Title: .screenrc
2 2
 # Author: Frédéric CHEVALIER <f15.chevalier@gmail.com>
3
-# Version: 1.2
3
+# Version: 1.3
4 4
 # Created in: 2014-08-11
5
-# Modified in: 2014-09-02
5
+# Modified in: 2014-09-30
6 6
 
7 7
 
8 8
 
... ...
@@ -10,6 +10,7 @@
10 10
 # Versions #
11 11
 #==========#
12 12
 
13
+# v1.3 - 2014-09-30: new key binding for moving between screens when in intricate screen session
13 14
 # v1.2 - 2014-09-02: correction of a minor bug on key binding for renaming
14 15
 # v1.1 - 2014-08-21: clean up / reading of .screen_profile added
15 16
 # v1.0 - 2014-08-12: huge improvement from informations get on the Internet
... ...
@@ -86,8 +87,8 @@ bindkey -k F2 title         # F12: rename window
86 87
 
87 88
 bindkey "^[[6;5~" next      # Ctrl-pgup: move to the next window
88 89
 bindkey "^[[5;5~" prev      # Ctrl-pgdown: move to the previous window
89
-#bindkey "^[[1;5C" next     # Ctrl-right arrow: move to the next window
90
-#bindkey "^[[1;5D" prev     # Ctrl-left arrow: move to the previous window
90
+bind p next     # C-x (x)  p: move to the next window
91
+bind o prev     # C-x (x) o: move to the previous window
91 92
 
92 93
 bindkey "^[[6;3~" number +1 # Alt-pgup: move tab up (increase tab number)
93 94
 bindkey "^[[5;3~" number -1 # Alt-pgdown: move tab down (decrease tab number)
Browse code

screenrc - v1.2 - Correct bug about tab renaming

Fred authored on02/09/2014 23:24:29
Showing1 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 # Title: .screenrc
2 2
 # Author: Frédéric CHEVALIER <f15.chevalier@gmail.com>
3
-# Version: 1.1
3
+# Version: 1.2
4 4
 # Created in: 2014-08-11
5
-# Modified in: 2014-08-21
5
+# Modified in: 2014-09-02
6 6
 
7 7
 
8 8
 
... ...
@@ -10,6 +10,7 @@
10 10
 # Versions #
11 11
 #==========#
12 12
 
13
+# v1.2 - 2014-09-02: correction of a minor bug on key binding for renaming
13 14
 # v1.1 - 2014-08-21: clean up / reading of .screen_profile added
14 15
 # v1.0 - 2014-08-12: huge improvement from informations get on the Internet
15 16
 # v0.0 - 2014-08-11: creation
... ...
@@ -81,7 +82,7 @@ bindkey -k k3 eval "clear" "focus up" "clear" "focus up"    # F3: clear both reg
81 82
 # Window management
82 83
 bindkey -k k4 quit          # F4: close all windows and exit screen
83 84
 bindkey -k k5 windowlist    # F5: windowlist
84
-bindkey -k k12 title        # F12: rename window
85
+bindkey -k F2 title         # F12: rename window
85 86
 
86 87
 bindkey "^[[6;5~" next      # Ctrl-pgup: move to the next window
87 88
 bindkey "^[[5;5~" prev      # Ctrl-pgdown: move to the previous window
Browse code

screenrc - v1.1 - Add profile handling

Fred authored on21/08/2014 18:03:41
Showing1 changed files
... ...
@@ -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"
Browse code

screenrc - v1.0 - see Versions section for details

Fred authored on12/08/2014 16:16:56
Showing1 changed files
... ...
@@ -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
Browse code

screenrc - v0.0

Fred authored on11/08/2014 17:13:28
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+#General Settings
2
+term xterm
3
+startup_message off
4
+vbell off
5
+caption always
6
+
7
+#Ctrl-up, Ctrl-down to move between regions
8
+bindkey "^[[1;5A" focus up
9
+bindkey "^[[1;5B" focus down
10
+
11
+#Ctrl-left, Ctrl-right to move between windows
12
+bindkey "^[[1;5C" next
13
+bindkey "^[[1;5D" prev
14
+
15
+#F9, F10, F11 to decrease, increase, equalize region size
16
+bindkey "^[[20~" resize -1
17
+bindkey "^[[21~" resize +1
18
+bindkey "^[[23~" resize =
19
+
20
+#F1, F2 to move to top/bottom region
21
+#F3 to clear both regions
22
+#F4 to close all windows and exit screen
23
+bindkey -k k1 focus top
24
+bindkey -k k2 focus bottom
25
+bindkey -k k3 eval "clear" "focus up" "clear" "focus up"
26
+bindkey -k k4 quit
27
+
28
+#F5 windowlist, #F6 rename window
29
+bindkey -k k5 windowlist
30
+bindkey -k k6 title