added molecule aliases

This commit is contained in:
Pascal Kontschan 2026-02-23 11:44:49 +01:00
commit 390c76faf5
No known key found for this signature in database
2 changed files with 20 additions and 1 deletions

View file

@ -1,9 +1,20 @@
# Molecule plugin
This plugin adds completion for [Molecule](https://ansible.readthedocs.io/projects/molecule/), the project designed to aid in the development and testing of Ansible roles..
This plugin adds aliases and completion for [Molecule](https://ansible.readthedocs.io/projects/molecule/), the
project designed to aid in the development and testing of Ansible roles..
To use it, add `molecule` to the plugins array in your zshrc file:
```zsh
plugins=(... molecule)
```
## Aliases
| Command | Description |
| :------ | :----------------------- |
| alias | mol='molecule ' |
| alias | mct='molecule create ' |
| alias | mcv='molecule converge ' |
| alias | mls='molecule list ' |
| alias | mvf='molecule verify ' |

View file

@ -12,3 +12,11 @@ if [[ ! -f "$ZSH_CACHE_DIR/completions/_molecule" ]]; then
fi
_MOLECULE_COMPLETE=zsh_source molecule >| "$ZSH_CACHE_DIR/completions/_molecule" &|
# Alias
# molecule: https://docs.ansible.com/projects/molecule/
alias mol='molecule '
alias mct='molecule create '
alias mcv='molecule converge '
alias mls='molecule list '
alias mvf='molecule verify '