From 8d1bd7cc2240b6d78ef7020c79fe5d5b25bafde9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E4=B8=8D=E6=B8=B8?= <71683364+mefengl@users.noreply.github.com> Date: Wed, 22 Feb 2023 20:00:18 +0800 Subject: [PATCH] feat(packer): add packer plugin add some alias --- plugins/packer/README.md | 25 +++++++++++++++++++++++++ plugins/packer/terraform.plugin.zsh | 6 ++++++ 2 files changed, 31 insertions(+) create mode 100644 plugins/packer/README.md create mode 100644 plugins/packer/terraform.plugin.zsh 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 .'