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

Re: whence output varies with dot vs. realpath in $PATH



On Mon, Oct 31, 2022 at 4:17 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> On 2022-10-31 16:03, Bart Schaefer wrote:
> >>>> If $PWD is actually in the path
> >> That can be in there literally?
> > No, that's not what I meant.
> >
> I'm just experimenting with that now, but it seems to work ... but only
> once per restart of the shell, just as I really should expect. Back to
> the dot.   So it has to be dynamic.

If you don't mind the overhead, you can muck around with $path in your
chpwd function to force the full current directory to always be there.




Messages sorted by: Reverse Date, Date, Thread, Author