Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cd, pwd and symlinks
- X-seq: zsh-users 2621
- From: Adam Spiers <adam@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: cd, pwd and symlinks
- Date: Mon, 27 Sep 1999 14:42:35 +0100
- In-reply-to: <19990927153430.A22914@xxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990927105103.A21392@xxxxxxxxxxxxxxxxx> <19990927140204.A10336@xxxxxxxxxxxxxxxxxxxxxxx> <19990927153430.A22914@xxxxxxxxxxxxxxxxx>
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
Hubert Canon (Hubert.Canon@xxxxxxxx) wrote:
> But I am a bit confused, because I would like that `cd ..' had the
> present behaviour (when these options are unset) and that I use
> another construct (like `cd ./..' for example) when I want to follow
> links.
Sounds like a reasonable request. You could implement it with a
function:
function ccd {
# Chase Change Directory
setopt localopts chaselinks
builtin cd "$@"
}
and then do
% ccd ..
or even as a wrapper around cd, but I'll leave that as an exercise to
the reader :-)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author