Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: cd, pwd and symlinks



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