summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2018-03-28 21:30:18 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2018-03-28 14:30:18 -0500
commit4c6199923e6b9c652291e2ce9b272552116ab458 (patch)
treefba5acc01a1e7fe49f731fcaf6435b8d9d211f82
parentfa7e92fa0ae7aeb417d9cd6854f46e72f06d1d38 (diff)
downloadspack-4c6199923e6b9c652291e2ce9b272552116ab458.tar.gz
spack-4c6199923e6b9c652291e2ce9b272552116ab458.tar.bz2
spack-4c6199923e6b9c652291e2ce9b272552116ab458.tar.xz
spack-4c6199923e6b9c652291e2ce9b272552116ab458.zip
mirrors.yaml: does not expand ~ (#7631)
Use `$HOME` for cli commands in `mirrors.yaml` and add "username" example strings in the file itself.
-rw-r--r--lib/spack/docs/mirrors.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/docs/mirrors.rst b/lib/spack/docs/mirrors.rst
index 4177261814..02bec81258 100644
--- a/lib/spack/docs/mirrors.rst
+++ b/lib/spack/docs/mirrors.rst
@@ -166,7 +166,7 @@ a directory, you can use a file URL like this one:
.. code-block:: none
- file://~/spack-mirror-2014-06-24
+ file://$HOME/spack-mirror-2014-06-24
That points to the directory on the local filesystem. If it were on a
web server, you could use a URL like this one:
@@ -178,7 +178,7 @@ You can tell your Spack installation to use that mirror like this:
.. code-block:: console
- $ spack mirror add local_filesystem file://~/spack-mirror-2014-06-24
+ $ spack mirror add local_filesystem file://$HOME/spack-mirror-2014-06-24
Each mirror has a name so that you can refer to it again later.
@@ -193,7 +193,7 @@ To see all the mirrors Spack knows about, run ``spack mirror list``:
.. code-block:: console
$ spack mirror list
- local_filesystem file://~/spack-mirror-2014-06-24
+ local_filesystem file:///home/username/spack-mirror-2014-06-24
.. _cmd-spack-mirror-remove:
@@ -218,7 +218,7 @@ Adding a mirror really adds a line in ``~/.spack/mirrors.yaml``:
.. code-block:: yaml
mirrors:
- local_filesystem: file://~/spack-mirror-2014-06-24
+ local_filesystem: file:///home/username/spack-mirror-2014-06-24
remote_server: https://example.com/some/web-hosted/directory/spack-mirror-2014-06-24
If you want to change the order in which mirrors are searched for