Skip to content

Instantly share code, notes, and snippets.

@cowboy
Created May 7, 2014 21:01
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 cowboy/74346471a000bb87b101 to your computer and use it in GitHub Desktop.
Save cowboy/74346471a000bb87b101 to your computer and use it in GitHub Desktop.
Grunt: Look, I re-integrated grunt-init back into grunt. Here ya go, @rwaldron
# (Include this function in your .bashrc)
# If the first argument is "init" or begins with "init:", run grunt-init.
# Otherwise run grunt.
function grunt() {
if [[ "$1" =~ ^init: ]]; then
grunt-init "${1##init:}" "${@:2}"
elif [ "$1" == "init" ]; then
grunt-init "${@:2}"
else
command grunt "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment