Skip to content

Commit

Permalink
Update rake.completion.sh to list all tasks
Browse files Browse the repository at this point in the history
My rake (13.0.6) generates empty list for completition without the flag `--all`
  • Loading branch information
mhmxs authored Sep 20, 2023
1 parent b4a2264 commit 5860c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/rake.completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function _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~
rake --silent --tasks --all | cut -d " " -f 2 > .rake_tasks~
fi
COMPREPLY=($(compgen -W "`cat .rake_tasks~`" -- ${COMP_WORDS[COMP_CWORD]}))
return 0
Expand Down

0 comments on commit 5860c3e

Please sign in to comment.