From 4718f1657bfb70605ae017790e23de2057e27306 Mon Sep 17 00:00:00 2001 From: Stevie Strickland Date: Fri, 16 Apr 2010 20:52:45 -0400 Subject: [PATCH] Only execute the planet commands if we're tab-completing after 'rico planet'. --- collects/meta/contrib/completion/racket-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collects/meta/contrib/completion/racket-completion.bash b/collects/meta/contrib/completion/racket-completion.bash index 50c6711134..e2f267cf75 100644 --- a/collects/meta/contrib/completion/racket-completion.bash +++ b/collects/meta/contrib/completion/racket-completion.bash @@ -100,7 +100,6 @@ _rico() # removing the empty string on the next line breaks things. such as my brain. cmds=$( echo '' '--help' ; for x in ${tmpoutput} ; do echo ${x} ; done ) makeopts="--disable-inline --no-deps -p --prefix --no-prim -v -vv --help -h" - planetcmds=$( echo '' '--help' ; for x in `rico planet --help 2>&1 | sed -n -e 's/^ \(.[^ ]*\).*/\1/p'` ; do echo ${x} ; done ) # # Complete the arguments to some of the basic commands. @@ -120,6 +119,7 @@ _rico() esac ;; planet) + planetcmds=$( echo '' '--help' ; for x in `rico planet --help 2>&1 | sed -n -e 's/^ \(.[^ ]*\).*/\1/p'` ; do echo ${x} ; done ) COMPREPLY=( $(compgen -W "${planetcmds}" -- ${cur}) ) ;; --help)