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

Re: ~/.zshenv or ~/.zprofile



    Hi Dan :)

 * Dan Nelson <dnelson@xxxxxxxxxxxxxxx> dixit:
> >     [[ -z "$path" ]] && path=(mypath $path)
> >     typeset -U path
> That won't work because cron and /usr/bin/login give you a minimal
> PATH.  You could have it test another variable like "NODEFAULTPATH" or
> something.

    In fact, that won't work because the OK will give you a minimal
PATH (at least under Linux), and even /sbin/init will provide a more
sophisticated one. The best solution is to test for SHLVL or, just as
you say, set NODEFAULTPATH or another variable acting as a marker.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/



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