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

How to complete alias after alias of sudo?



Hi,

I have

    alias sd='sd -i '
    alias foo=ls

And 

    % sd foo
    [sudo] password for hpt:
    anaconda-ks.cfg  initial-setup-ks.cfg  install-ocfedora.sh

works just fine. 

But looks like I cannot complete the second alias by <tab>:

    % sd f<tab>
    external command
    fold                                   foomatic-kitload
    ...

only external commands listed.

Is it possible to complete alias here? 

Thanks in advance!



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