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

Re: namespace completions ?



On Sat, Feb 15, 2014 at 12:55:00AM +0100, Oliver Kiddle wrote:
> It's a pity that isn't using function autoloading. It had never occurred
> to me before but it apparently works to autoload functions with slashes
> in their names and have them picked up out of subdirectories of your
> function path. 

well. 

* i want my functions to be in the same file
* some stuff isn't autoloadable, see 
  https://github.com/eiro/uze/blob/master/unistra/annuaire#L34 

> > saying https://github.com/eiro/uze is set and ready, i would like to
> > write this from the CLI: 
> > 
> >     mc@xxxxxxxxxxxx> a=unistra/annuaire
> >     mc@xxxxxxxxxxxx> . uze/$a 
> >     mc@xxxxxxxxxxxx> $a/<tab>
> 
> So basically, you want completion of shell functions to handle the
> ...  

i started with the Bart's answer (simplier) and it works. thank you!  

regards

-- 
Marc Chantreux (eiro on github and freenode)
http://eiro.github.com/
http://eiro.github.com/atom.xml
"Don't believe everything you read on the Internet"
    -- Abraham Lincoln



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