1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 14:20:08 +00:00

feat(packer): add packer plugin

add some alias
This commit is contained in:
冯不游 2023-02-22 20:00:18 +08:00
parent a24e91908a
commit 8d1bd7cc22
2 changed files with 31 additions and 0 deletions

25
plugins/packer/README.md Normal file
View file

@ -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 .` |

View file

@ -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 .'