layout: default
Fig comes with command completion for the bash shell.
Make sure bash completion is installed. If you use a current Linux in a non-minimal installation, bash completion should be available.
On a Mac, install with brew install bash-completion
Place the completion script in /etc/bash_completion.d/ (/usr/local/etc/bash_completion.d/ on a Mac), using e.g.
curl -L https://raw.githubusercontent.com/docker/fig/master/contrib/completion/bash/fig > /etc/bash_completion.d/fig
Completion will be available upon next login.
Depending on what you typed on the command line so far, it will complete
fig scale, completed service names will automatically have "=" appended.fig kill -s will complete some signals like SIGHUP and SIGUSR1.Enjoy working with fig faster and with less typos!