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

complete question



I have a command "beroot" that executes any arguments as root. i.e.

% beroot id -a

prints out:

uid=0(root) gid=10(staff) groups=10(staff),14(sysadmin)

How can I get zsh to complete the first parameter as a command, and the
rest using default completion (files)?

I've tried "compctl -x 'p[1]' -c  -- beroot", which does work for the
1st argument, but doesn't apply default completion to the other
arguments.

Any suggestions?

TIA,

Steve
~~
stephen.talley@xxxxxxxxxxxxxxx



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