From fc97b30ff2f2d26ef26062ad3725a0d799764b6d Mon Sep 17 00:00:00 2001 From: Joshua Bussdieker Date: Sat, 18 Feb 2012 15:37:25 -0800 Subject: [PATCH] Add version to bash completion --- scripts/completion | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/completion b/scripts/completion index 5eecc1c..0ad760f 100644 --- a/scripts/completion +++ b/scripts/completion @@ -69,10 +69,10 @@ _gvm() ;; *) [[ $COMP_CWORD > 1 ]] && return 1 - opts="get install list listall uninstall use" - [[ "$gvm_go_name" != "" ]] && opts="get install list listall pkgset uninstall use" - [[ "$gvm_pkgset_name" != "" ]] && opts="get install list listall pkg pkgset uninstall use" - COMPREPLY=($(compgen -W "${opts}" -- ${cur})) + opts="get install list listall uninstall use version" + [[ "$gvm_go_name" != "" ]] && opts="get install list listall pkgset uninstall use version" + [[ "$gvm_pkgset_name" != "" ]] && opts="get install list listall pkg pkgset uninstall use version" + COMPREPLY=($(compgen -W "${opts}" -- ${cur})) return 0 ;; esac