mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
feat(packer): add packer plugin
add some alias
This commit is contained in:
parent
a24e91908a
commit
8d1bd7cc22
2 changed files with 31 additions and 0 deletions
25
plugins/packer/README.md
Normal file
25
plugins/packer/README.md
Normal 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 .` |
|
6
plugins/packer/terraform.plugin.zsh
Normal file
6
plugins/packer/terraform.plugin.zsh
Normal 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 .'
|
Loading…
Reference in a new issue