https://github.com/erran/packer-completion
Bash completion for packer
https://github.com/erran/packer-completion
Last synced: about 1 year ago
JSON representation
Bash completion for packer
- Host: GitHub
- URL: https://github.com/erran/packer-completion
- Owner: erran
- Created: 2013-10-26T06:56:52.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-26T07:45:27.000Z (over 12 years ago)
- Last Synced: 2025-03-20T08:47:45.210Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 113 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Packer completion
Bash completion for [Packer](http://www.packer.io).
* `packer b # => packer build`
* `packer f # => packer fix`
* `packer i # => packer inspect`
* `packer v # => packer validate`
Tabbing twice with no arguments will return a list of all available commands for completion.
```bash
packer
# build fix inspect validate
```
## Requirements
* [Packer](http://www.packer.io/docs/installation.html)
* Bash
* Bash completion v1.3+ (running 1.1+ should work, but I haven't tested it)
## Installation
### Mac OS X
```bash
brew tap ipwnstuff/formulae
brew install packer-completion
# Then add the script into your .bashrc
if [ -f `brew --prefix`/etc/bash_completion.d/packer-completion.bash ]; then
source `brew --prefix`/etc/bash_completion.d/packer-completion.bash
fi
```
### Other
```bash
wget https://raw.github.com/ipwnstuff/packer-completion/master/packer-completion.bash -P ~
echo "source ~/packer-completion.bash" >> ~/.bashrc`
```