diff --git a/plugins/packer/README.md b/plugins/packer/README.md new file mode 100644 index 000000000..9413e1369 --- /dev/null +++ b/plugins/packer/README.md @@ -0,0 +1,25 @@ +# Packer plugin + +Plugin for Packer, a tool from Hashicorp for managing docker safely and efficiently. +It adds aliases for `packer` + +To use it, add `packer` to the plugins array of your `~/.zshrc` file: + +```shell +plugins=(... packer) +``` + +## Requirements + +* [packer](https://packer.io/) + +## Aliases + +| Alias | Command | +| -------- | --------------------------------------------------------------------------------- | +| `pkr` | `packer` | +| `pkri` | `packer init .` | +| `pkrf` | `packer fmt . -recursive` | +| `pkrv` | `packer validate .` | +| `pkrb` | `packer build .` | +| `pkrall` | `packer init . && packer fmt . -recursive && packer validate . && packer build .` | diff --git a/plugins/packer/terraform.plugin.zsh b/plugins/packer/terraform.plugin.zsh new file mode 100644 index 000000000..2fcb3055b --- /dev/null +++ b/plugins/packer/terraform.plugin.zsh @@ -0,0 +1,6 @@ +alias pkr='packer' +alias pkri='packer init .' +alias pkrf='packer fmt . -recursive' +alias pkrv='packer validate .' +alias pkrb='packer build .' +alias pkrall='packer init . && packer fmt . -recursive && packer validate . && packer build .'