Help files. Added the rest of bash it

This commit is contained in:
Robert R Evans
2010-10-02 15:07:29 -07:00
parent a7d1ee0c02
commit a4d0242dd0
20 changed files with 2341 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Bash completion support for Rake, Ruby Make.
export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}
_rakecomplete() {
if [ -f Rakefile ]; then
recent=`ls -t .rake_tasks~ Rakefile **/*.rake 2> /dev/null | head -n 1`
if [[ $recent != '.rake_tasks~' ]]; then
rake --silent --tasks | cut -d " " -f 2 > .rake_tasks~
fi
COMPREPLY=($(compgen -W "`cat .rake_tasks~`" -- ${COMP_WORDS[COMP_CWORD]}))
return 0
fi
}
complete -o default -o nospace -F _rakecomplete rake