From dccc8569ae522f854e187eb070ffd0f12a9eba30 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Sun, 30 Jun 2013 09:05:55 -0500 Subject: [PATCH] adding grunt shortcuts --- .gitignore | 1 + zsh/functions.zsh | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index b0cb1fe..e0ac49b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .netrwhist vim/vim.symlink/bundle/ +npm-debug.log diff --git a/zsh/functions.zsh b/zsh/functions.zsh index ccac997..345f1dd 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -97,3 +97,13 @@ function scpp() { echo "http://nicknisi.com/i/$1" | pbcopy; echo "Copied to clipboard: http://nicknisi.com/i/$1" } + +# install a grunt plugin and save to devDependencies +function gi() { + npm install --save-dev grunt-"$@" +} + +# install a grunt-contrib plugin and save to devDependencies +function gci() { + npm install --save-dev grunt-contrib-"$@" +}