Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: another bug: zsh_directory_name
- X-seq: zsh-workers 25977
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: another bug: zsh_directory_name
- Date: Thu, 30 Oct 2008 22:16:16 +0000
- In-reply-to: Message from Oliver Kiddle <okiddle@xxxxxxxxxxx> of "Thu, 30 Oct 2008 22:20:54 +0100." <20324.1225401654@thecus>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Oliver Kiddle wrote:
> Out of interest what are people using this for. It seems like a nice
> idea, but I've yet to think of an actual use that can't be done with a
> normal named directory. Transformations on the current $PWD seem to be
> one logical option - ${PWD/src/include} for instance. Or an easier syntax
> for (../)#
I'm using it for simplified hierarchies. ~[p] means my normal Perforce
client, ~[p1] my alternative one, so ~[p:u] is
/home/pws/perforce/uwb/main/fw/src while ~[p1:u] is
/home/pws/perforcel1/uwb/main/fw/src, and so on. In other words, I can
replace multiple chunks in the directory path very briefly; I could only
do that with static names by naming every possible combination.
See my previous post for how I'm doing completion on these.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author