Skip to content

Instantly share code, notes, and snippets.

@mathieu-aubin
Created September 29, 2018 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathieu-aubin/4bfe8f98682bfdf0662edc13f9d13559 to your computer and use it in GitHub Desktop.
Save mathieu-aubin/4bfe8f98682bfdf0662edc13f9d13559 to your computer and use it in GitHub Desktop.
Perlbrew (https://github.com/gugod/App-perlbrew) bash completion file
if [[ -n ${ZSH_VERSION-} ]]; then
autoload -U +X bashcompinit && bashcompinit
fi
export PERLBREW="command perlbrew"
_perlbrew_compgen() {
COMPREPLY=( $($PERLBREW compgen $COMP_CWORD ${COMP_WORDS[*]}) )
}
complete -F _perlbrew_compgen perlbrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment