Created
May 7, 2014 21:01
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (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