summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash20
1 files changed, 19 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 08ea6751f3..65866a5099 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -1444,7 +1444,7 @@ _spack_pkg() {
then
SPACK_COMPREPLY="-h --help"
else
- SPACK_COMPREPLY="add list diff added changed removed"
+ SPACK_COMPREPLY="add list diff added changed removed source hash"
fi
}
@@ -1502,6 +1502,24 @@ _spack_pkg_removed() {
fi
}
+_spack_pkg_source() {
+ if $list_options
+ then
+ SPACK_COMPREPLY="-h --help -c --canonical"
+ else
+ _all_packages
+ fi
+}
+
+_spack_pkg_hash() {
+ if $list_options
+ then
+ SPACK_COMPREPLY="-h --help"
+ else
+ _all_packages
+ fi
+}
+
_spack_providers() {
if $list_options
then