An open API service indexing awesome lists of open source software.

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

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