zsh-users
 help / color / mirror / code / Atom feed
From: Andre Pang <andrep-ml@vjolnir.org>
To: Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
Cc: zsh-users@sunsite.auc.dk
Subject: Re: Prompt expansion, multi-job for
Date: Fri, 7 Jan 2000 01:46:39 +1100	[thread overview]
Message-ID: <20000107014639.A333@bozar.ihug.com.au> (raw)
In-Reply-To: <000701bf5843$c3f6fca0$21c9ca95@mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Thu, Jan 06, 2000 at 03:44:26PM +0300

On Thu, Jan 06, 2000 at 03:44:26PM +0300, Andrej Borsenkow wrote:

> > surprises there.  What I'd like to do is trim each path element to one
> > character unless it's the last path element, in which case it should be
> > displayed to a maximum of, say, 15 characters.  eg, /usr/local/src should be
> > displayed as "/u/l/src", /usr/local/src/linux would be displayed as
> > "/u/l/s/linux", and /usr/local/src/linux-2.2.14+reiserfs+raid+ide might be
> > displayed as "/u/l/s/linux-2.2.14...".  Is this possible with the current
> 
> In  the current zsh
> 
> bor@itsrm2% echo ${PWD//(#m)[^\\/]##\\//$MATCH[1]/}
> /t/s/zsh-3.1.6-dev-14

    Thanks; I might wait for 3.1.7 to try it out.  It appears that 3.1.6
doesn't support it (at least my 3.1.6 returns 'zsh: bad pattern:
(#m)[^/]##/').

    While on the subject of prompt stuff, is there any reason why the
'PROMPT EXPANSION' section of the zsh manual is under zshmisc.1?  Would it
be more sensible to put it in zshexpn.1?


-- 
: Andre Pang <andrep@vjolnir.org> - Purruna Pty Ltd - ph# 0411.882299 :
:               #ozone - http://www.vjolnir.org/ozone/                :


  reply	other threads:[~2000-01-06 14:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-06  8:44 Andre Pang
2000-01-06 12:03 ` Oliver Kiddle
2000-01-06 14:19   ` Thomas Köhler
2000-01-06 15:21     ` Oliver Kiddle
     [not found]       ` <14452.47479.5744.410474@gargle.gargle.HOWL>
2000-01-06 17:47         ` Oliver Kiddle
2000-01-09  0:59       ` Bart Schaefer
2000-01-06 14:54   ` Andre Pang
2000-01-06 12:44 ` Andrej Borsenkow
2000-01-06 14:46   ` Andre Pang [this message]
2000-01-06 20:18 ` Peter Stephenson
2000-01-06 11:41 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000107014639.A333@bozar.ihug.com.au \
    --to=andrep-ml@vjolnir.org \
    --cc=Andrej.Borsenkow@mow.siemens.ru \
    --cc=andrep@vjolnir.org \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).