mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
added molecule aliases
This commit is contained in:
parent
400591e71c
commit
390c76faf5
2 changed files with 20 additions and 1 deletions
|
|
@ -1,9 +1,20 @@
|
||||||
# Molecule plugin
|
# 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:
|
To use it, add `molecule` to the plugins array in your zshrc file:
|
||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
plugins=(... molecule)
|
plugins=(... molecule)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Aliases
|
||||||
|
|
||||||
|
| Command | Description |
|
||||||
|
| :------ | :----------------------- |
|
||||||
|
| alias | mol='molecule ' |
|
||||||
|
| alias | mct='molecule create ' |
|
||||||
|
| alias | mcv='molecule converge ' |
|
||||||
|
| alias | mls='molecule list ' |
|
||||||
|
| alias | mvf='molecule verify ' |
|
||||||
|
|
|
||||||
|
|
@ -12,3 +12,11 @@ if [[ ! -f "$ZSH_CACHE_DIR/completions/_molecule" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_MOLECULE_COMPLETE=zsh_source molecule >| "$ZSH_CACHE_DIR/completions/_molecule" &|
|
_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 '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue