Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Implications For sudo Command' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Implications For sudo Command
Authored by: bfad on Mon, Mar 24 2008 at 8:15AM PDT
One of the most frustrating things for me is that commands don't tab-complete when prefixed by sudo, but now I can modify this for the sudo command. Does anyone with better Unix knowledge then me know how I could use this to read in my $PATH variable to get the list of directories for sudo to look under for tab completion? Otherwise I'll just have to add all the paths individually, including the one's I've specified.

[ Reply to This | # ]
Implications For sudo Command
Authored by: ccase on Mon, Mar 24 2008 at 12:04PM PDT
Try: complete -c -f command sudo

[ Reply to This | # ]
Implications For sudo Command
Authored by: bfad on Tue, Mar 25 2008 at 10:40AM PDT
Thank you ccase! That works perfectly.

[ Reply to This | # ]