diff options
| author | Toby Goodwin <tjg@star.le.ac.uk> | 1999-05-12 16:47:55 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:22:09 +0100 |
| commit | 2c998c165268f24f038e02f103e07a967b343c3f (patch) | |
| tree | 0851688418368756c86fe2c16ab439c42fd5c302 /EXAMPLES | |
| parent | f983e502ce8fc8d1d0289b8feb269218a70618e6 (diff) | |
beta: rc-1.5b6
Diffstat (limited to 'EXAMPLES')
| -rw-r--r-- | EXAMPLES | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,6 +1,6 @@ -There is no repository for useful rc code snippets as yet, so I'm including -a (short) file in the distribution with some helpful/intriguing pieces of -rc code. +There is no repository for useful rc code snippets as yet, so +I'm including a (short) file in the distribution with some +helpful/intriguing pieces of rc code. A sample .rcrc -------------- @@ -624,7 +624,7 @@ Status: RO Use trimhist [-#lines] -trims your history file back; useful for folks with dis quota's :-) +trims your history file back; useful for folks with disk quota's :-) fn trimhist { p1=-100 { cp $history $history^'~' ~ $#* 1 && p1=$1 @@ -742,8 +742,8 @@ fn pathprefix { p1=() i=() j=() { home=/user/users/rsalz z=/usr/users -pathprefix /usr/users/rsalz home usr # --> $home -pathprefix /usr/users/rsalz z # --> $z/rsalz -pathprefix /usr/users/rsalz/foo z home # --> $z/rsalz/foo -pathprefix /usr/users/rsalz/foo home # --> $home/foo +pathprefix /usr/users/rsalz home usr # --> $home +pathprefix /usr/users/rsalz z # --> $z/rsalz +pathprefix /usr/users/rsalz/foo z home # --> $z/rsalz/foo +pathprefix /usr/users/rsalz/foo home # --> $home/foo |