From e85a8cde37fbc1568a12d89b3de372bdfb9c8d93 Mon Sep 17 00:00:00 2001 From: Paul Ferrell <51765748+Paul-Ferrell@users.noreply.github.com> Date: Wed, 24 Feb 2021 11:57:50 -0700 Subject: Config prefer upstream (#21487) This allows for quickly configuring a spack install/env to use upstream packages by default. This is particularly important when upstreaming from a set of officially supported spack installs on a production cluster. By configuring such that package preferences match the upstream, you ensure maximal reuse of existing package installations. --- share/spack/spack-completion.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index 62829d474a..3a35fa71a4 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -587,7 +587,7 @@ _spack_config() { then SPACK_COMPREPLY="-h --help --scope" else - SPACK_COMPREPLY="get blame edit list add remove rm update revert" + SPACK_COMPREPLY="get blame edit list add prefer-upstream remove rm update revert" fi } @@ -631,6 +631,10 @@ _spack_config_add() { fi } +_spack_config_prefer_upstream() { + SPACK_COMPREPLY="-h --help --local" +} + _spack_config_remove() { if $list_options then -- cgit v1.2.3-70-g09d2