summaryrefslogtreecommitdiff
path: root/share/spack/spack-completion.bash
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-03-15 21:38:35 +0100
committerGitHub <noreply@github.com>2021-03-15 15:38:35 -0500
commit195341113e7da85611553d1ea9bd907ccabeff64 (patch)
tree39c2256edeb7b6a19021b6b01c35cfa1a751f072 /share/spack/spack-completion.bash
parent4f1d9d6095e5d59ebec5563e628c74efebc150e9 (diff)
downloadspack-195341113e7da85611553d1ea9bd907ccabeff64.tar.gz
spack-195341113e7da85611553d1ea9bd907ccabeff64.tar.bz2
spack-195341113e7da85611553d1ea9bd907ccabeff64.tar.xz
spack-195341113e7da85611553d1ea9bd907ccabeff64.zip
Expand relative dev paths in environment files (#22045)
* Rewrite relative dev_spec paths internally to absolute paths in case of relocation of the environment file * Test relative paths for dev_path in environments * Add a --keep-relative flag to spack env create This ensures that relative paths of develop paths are not expanded to absolute paths when initializing the environment in a different location from the spack.yaml init file.
Diffstat (limited to 'share/spack/spack-completion.bash')
-rwxr-xr-xshare/spack/spack-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 20bcf1e660..a0fea36e21 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -793,7 +793,7 @@ _spack_env_deactivate() {
_spack_env_create() {
if $list_options
then
- SPACK_COMPREPLY="-h --help -d --dir --without-view --with-view"
+ SPACK_COMPREPLY="-h --help -d --dir --keep-relative --without-view --with-view"
else
_environments
fi