Skip to content
espenak edited this page Jun 2, 2012 · 3 revisions

We provide bash completion scripts for awsfab and for bin/awsfab.

Completion for "awsfab"

Download bash-completion/awsfab_completion.bash. Place the downloaded file in an appropriate place (E.g.: ~/.bash-completion/), and add the following to your ~/.bashrc:

source ~/.bash-completion/awsfab_completion.bash

Completion for "bin/awsfab"

Same instructions as for awsfab (above), except that you need to use bash-completion/bin_awsfab_completion.bash.

Organize bash-completion scripts in your HOME

You may want to put more bash-completion scripts in ~/.bash-completion than just awsfab. If you have many completion scripts, adding them manually becomes tedious. Use:

# Load any bash completion scripts in ~/.bash-completion
for filename in $(ls ~/.bash-completion/*); do
    source $filename;
done

to add them automatically. This also works if you just symlink completion scripts into ~/.bash-completion.

Clone this wiki locally