From 4c6199923e6b9c652291e2ce9b272552116ab458 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 28 Mar 2018 21:30:18 +0200 Subject: mirrors.yaml: does not expand ~ (#7631) Use `$HOME` for cli commands in `mirrors.yaml` and add "username" example strings in the file itself. --- lib/spack/docs/mirrors.rst | 8 ++++---- 1 file 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 -- cgit v1.2.3-70-g09d2