Hello,
I started to write a completion for sudo with the help of Axel and this is how
far I got. My question is, can you nest completions? The basic use for sudo
is:
sudo <command>
I have gotten sudo to list the valid commands, but after selecting the
command, I would like the completion to work for the "command" and not for
sudo. Is there a way to do that?
Sean
#
# Completion for sudo
#
# Generate a list of commands
#
function __fish_complete_commands
for i in $PATH
command ls $i
end
end
complete -c sudo -d (_ "Command to run") -x -a "(__fish_complete_commands)"
complete -c sudo -s h -d (_ "Help")
complete -c sudo -s v -d (_ "Validate")
--
Sean Higgins, [EMAIL PROTECTED]
http://www.systura.com - "Where information becomes knowledge."
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users