spack/share/spack
Todd Gamblin 396f219011 completion: add alias handling
Bash completion is now smarter about handling aliases. In particular, if all completions
for some input command are aliased to the same thing, we'll just complete with that thing.

If you've already *typed* the full alias for a command, we'll complete the alias.

So, for example, here there's more than one real command involved, so all aliases are
shown:

```console
$ spack con
concretise    concretize    config        containerise  containerize
```

Here, there are two possibilities: `concretise` and `concretize`, but both map to
`concretize` so we just complete that:

```console
$ spack conc
concretize
```

And here, the user has already typed `concretis`, so we just go with it as there is only
one option:

```console
 spack concretis
concretise
```
2023-08-30 12:42:31 -07:00
..
bash completion: add alias handling 2023-08-30 12:42:31 -07:00
bootstrap Update metadata for bootstrapping (#33665) 2022-11-03 09:05:03 +00:00
csh macos sip: apply on macos only, dont store LD_LIBRARY_PATH (#38687) 2023-07-04 10:54:13 +02:00
docker license year bump (#34921) 2023-01-18 14:30:17 -08:00
docs/docker/module-file-tutorial license year bump (#34921) 2023-01-18 14:30:17 -08:00
fish Fix suffix of tab completion scripts (#39154) 2023-08-09 08:28:55 -05:00
gitlab Patch VTK to enable python 3.8 in VTK 8.2 (#38735) 2023-08-28 16:56:31 -05:00
keys update tutorial command for v0.18.0 and new gpg key (#30904) 2022-05-28 02:36:20 +00:00
logo
qa completion: add alias handling 2023-08-30 12:42:31 -07:00
templates Fix containerize view symlink issue (#39419) 2023-08-14 16:02:48 +00:00
setup-env.csh license year bump (#34921) 2023-01-18 14:30:17 -08:00
setup-env.fish Revert "Add style tool to fix fish file formatting (#39155)" (#39680) 2023-08-29 18:12:19 +02:00
setup-env.ps1 Windows: Add PowerShell env support (#37951) 2023-06-27 18:26:51 -07:00
setup-env.sh macos sip: apply on macos only, dont store LD_LIBRARY_PATH (#38687) 2023-07-04 10:54:13 +02:00
setup-tutorial-env.sh license year bump (#34921) 2023-01-18 14:30:17 -08:00
spack-completion.bash completion: add alias handling 2023-08-30 12:42:31 -07:00
spack-completion.fish Add concretise and containerise aliases for our UK users 2023-08-30 12:42:31 -07:00