diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-10-09 13:06:08 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-10-09 13:06:08 +0200 |
commit | 48edc9a28e643f54a6d545226a0c2f4c58cd248b (patch) | |
tree | 07dedfa916d26b5cccb5379b235282fb3d2b4ba6 | |
parent | 7c9e2a002cba62e18817c5029aa6df77c4dc6c70 (diff) | |
download | app.sh-48edc9a28e643f54a6d545226a0c2f4c58cd248b.tar.gz app.sh-48edc9a28e643f54a6d545226a0c2f4c58cd248b.tar.bz2 app.sh-48edc9a28e643f54a6d545226a0c2f4c58cd248b.tar.xz app.sh-48edc9a28e643f54a6d545226a0c2f4c58cd248b.zip |
o Complete the method first.
-rw-r--r-- | app_completion | 8 |
1 files changed, 8 insertions, 0 deletions
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` |