From 8e5e43e4013b10fa24cfeaa25275294553d5763b Mon Sep 17 00:00:00 2001 From: Richard Kovacs Date: Sat, 23 Sep 2023 11:05:17 +0200 Subject: [PATCH] completions/rake: List all tasks (#478) My rake (13.0.6) generates empty list for completition without the flag `--all` --- completions/rake.completion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/rake.completion.sh b/completions/rake.completion.sh index 04048cc66..13df9d848 100644 --- a/completions/rake.completion.sh +++ b/completions/rake.completion.sh @@ -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