zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: derf@sievert.tabularazor.org
Cc: zsh-workers@sunsite.dk
Subject: Re: [contrib] fish-like directory in prompt
Date: Sat, 28 Feb 2009 11:13:11 -0800	[thread overview]
Message-ID: <20090228191311.GA447@blorf.net> (raw)
In-Reply-To: <20090228115730.GA60598@sievert.tabularazor.org>

On Sat, Feb 28, 2009 at 12:57:30PM +0100, derf@sievert.tabularazor.org wrote:
> it can also produce "tab-safe" paths, so if you take the path, paste
> it into a shell and press tab, it will safely expand to your current
> working directory.

Nice!  I encountered one issue if the path uses a symlink as a directory
component:  either the full symlink name is always included (if the
symlink is the only matching item with the starting letter), or not
enough path is output (if some other directory starts with the same
letter as the symlink).  The solution is to turn on symlink-following
for the glob:

- 			expn=($(echo ${part}*(/)))
+ 			expn=($(echo ${part}*(-/)))

..wayne..


      reply	other threads:[~2009-02-28 19:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-28 11:57 derf
2009-02-28 19:13 ` Wayne Davison [this message]

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=20090228191311.GA447@blorf.net \
    --to=wayned@users.sourceforge.net \
    --cc=derf@sievert.tabularazor.org \
    --cc=zsh-workers@sunsite.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).