From 48edc9a28e643f54a6d545226a0c2f4c58cd248b Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 9 Oct 2012 13:06:08 +0200 Subject: o Complete the method first. --- app_completion | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app_completion b/app_completion index 3fa10c9..231a714 100644 --- a/app_completion +++ b/app_completion @@ -18,6 +18,14 @@ _complete_appsh() { COMPREPLY=() local cur="${COMP_WORDS[COMP_CWORD]}" local prev="${COMP_WORDS[COMP_CWORD-1]}" + local opts + + if [ $COMP_CWORD == 1 ] + then + opts="conf install list set-current start stop" + COMPREPLY=($(compgen -W "${opts}" -- ${cur})) + return 0 + fi eval `_appsh_parse_opts` -- cgit v1.2.3