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

Re: Global aliases, eval, and completion (Re: Expanding interactively aliases)



Bart Schaefer wrote:
> 
> } > Would it be easy to avoid this somehow?
> 
> Having already implemented `autoload -U', we could now easily add a zsh
> option `noalias' akin to `noglob', and then add that to $_comp_options.
> Then completion functions that specifically wanted aliases could restore
> the `alias' option in the scope where they wanted it.

That seems like a good idea. The only other thing I can think of is
another precommand modifier - noalias, like noglob. 

> I said exactly the same thing about "source -U" in the aforementioned
> year-ago thread.

I remember that actually. I'm undecided on it myself because source -U
would be useful. Incidentally, tcsh has a -h option to source (but no
options to eval). I suppose a noalias option would avoid the need for a
source -U.

Oliver Kiddle



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