aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
diff options
context:
space:
mode:
Diffstat (limited to '.functions')
-rw-r--r--.functions7
1 files changed, 7 insertions, 0 deletions
diff --git a/.functions b/.functions
index 2481e8a..ca55c46 100644
--- a/.functions
+++ b/.functions
@@ -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-{"$*"}
+}