complete -p | grep '\-o filenames' |p -v '\-o default' | grep -v '\-o bashdefault' | while read i; do eval "$i -o bashdefault"; done
Saturday, June 07, 2008
Frustrated that bash completion isn't giving you anything?
It can be frustrating when the normally-amazing bash_completion (on ubuntu at least) doesn't complete anything, because you're working with a file that's named slightly differently than normal. (Like trying to mplayer a media file with an unusual or nonexistant extension). As a quick hacky fix, put this in ~/.bashrc:
Subscribe to:
Posts (Atom)