Skip to content

Instantly share code, notes, and snippets.

@jgallen23
Last active December 15, 2015 11:49
Show Gist options
  • Save jgallen23/5255405 to your computer and use it in GitHub Desktop.
Save jgallen23/5255405 to your computer and use it in GitHub Desktop.
bash grunt plugin install script
gi() {
if [ $# -eq 1 ]; then
npm i -D grunt-$*
else
local IFS=,;
eval npm i -D grunt-{"$*"};
fi
}

#Grunt Plugin Installer

##Installation

Put script in .bash_profile or .bash_aliases

##Usage

###Install one plugin

gi contrib-concat

###Install multiple plugins

gi contrib-concat reloadr markx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment