Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Implications For sudo Command' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Implications For sudo Command
Authored by: bfad on Mar 24, '08 08:15:51AM

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 Mar 24, '08 12:04:00PM
Try: complete -c -f command sudo

[ Reply to This | # ]
Implications For sudo Command
Authored by: bfad on Mar 25, '08 10:40:00AM

Thank you ccase! That works perfectly.



[ Reply to This | # ]