Skip to content

Instantly share code, notes, and snippets.

# Bash completion for Yeoman generators by Noel Mace
# forked from https://gist.github.com/natchiketa/6095984
# support angular "sub" generators (as angular:controller)
# just tested on Debian for now
function _yo_generator_complete_() {
# local node_modules if present
local local_modules=$(if [ -d node_modules ]; then echo "node_modules:"; fi)
# node_modules in /usr/lib if present