diff options
author | Sindre Sorhus <sindresorhus@gmail.com> | 2013-05-10 08:30:43 +0200 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2013-05-10 08:32:04 +0200 |
commit | 5a44681edcac0b137ddaa6523af8d7fa6747550d (patch) | |
tree | 16a5fbde224702d508ba73045d246962e996eb57 /.functions | |
parent | 982ee2f018c481b5a27dd29ef6f38a9328f2f50f (diff) | |
download | dotfiles-5a44681edcac0b137ddaa6523af8d7fa6747550d.tar.gz dotfiles-5a44681edcac0b137ddaa6523af8d7fa6747550d.tar.bz2 dotfiles-5a44681edcac0b137ddaa6523af8d7fa6747550d.zip |
.functions: Add `gi`
This is an easy way to install Grunt plugins and add them as `devDependencies` to `package.json`.
Example:
gi contrib-watch contrib-uglify zopfli
Closes #191.
Diffstat (limited to '.functions')
-rw-r--r-- | .functions | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -239,3 +239,10 @@ function unquarantine() { xattr -r -d "$attribute" "$@" done } + +# Install Grunt plugins and add them as `devDependencies` to `package.json` +# Usage: `gi contrib-watch contrib-uglify zopfli` +function gi() { + local IFS=, + eval npm install --save-dev grunt-{"$*"} +} |