spack/etc/spack/defaults
Michael Kuhn 5074b7e922
Add support for aliases (#17229)
Add a new config section: `config:aliases`, which is a dictionary mapping aliases
to commands.

For instance:


```yaml
config:
    aliases:
        sp: spec -I
```

will define a new command `sp` that will execute `spec` with the `-I`
argument. 

Aliases cannot override existing commands, and this is ensured with a test.

We cannot currently alias subcommands. Spack will warn about any aliases
containing a space, but will not error, which leaves room for subcommand
aliases in the future.

---------

Co-authored-by: Todd Gamblin <tgamblin@llnl.gov>
2023-11-06 14:37:46 -08:00
..
cray Don't set LD_LIBRARY_PATH by default on Linux (#28354) 2022-08-11 09:33:08 -05:00
darwin macOS: use Apple GL/GLU by default (#36618) 2023-04-27 21:54:48 -05:00
linux Don't set LD_LIBRARY_PATH by default on Linux (#28354) 2022-08-11 09:33:08 -05:00
windows Allow configurable stage names (#36509) 2023-03-31 11:46:47 -07:00
bootstrap.yaml Update bootstrap buildcache to support Python 3.12 (#40404) 2023-10-11 19:03:17 +02:00
concretizer.yaml Make "minimal" the default duplicate strategy (#39621) 2023-10-06 10:24:21 +02:00
config.yaml Add support for aliases (#17229) 2023-11-06 14:37:46 -08:00
mirrors.yaml mirrors: distinguish between source/binary mirror; simplify schema (#34523) 2023-07-13 11:29:17 +00:00
modules.yaml defaults/modules.yaml: hide implicits (#40906) 2023-11-06 10:37:29 -08:00
packages.yaml zlib-api: use zlib-ng +compat by default (#39358) 2023-08-17 14:03:14 -07:00
repos.yaml Add "default" configuration scope. 2016-07-19 17:10:17 -07:00