aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
diff options
context:
space:
mode:
authorCătălin Mariș <alrraa@gmail.com>2014-04-15 16:24:04 +0200
committerMathias Bynens <mathias@qiwi.be>2014-04-15 16:25:26 +0200
commit80760af90fbfe4519ece48b1858ef06e36fd762b (patch)
tree423e90b57fec6f0e8f056f99f36def65556abaa2 /.functions
parent9f0a48300f2fcd450f71318da318e2a8c613f37f (diff)
downloaddotfiles-80760af90fbfe4519ece48b1858ef06e36fd762b.tar.gz
dotfiles-80760af90fbfe4519ece48b1858ef06e36fd762b.tar.bz2
dotfiles-80760af90fbfe4519ece48b1858ef06e36fd762b.zip
.functions: Make `gi` accept any number of arguments
Closes #367.
Diffstat (limited to '.functions')
-rw-r--r--.functions3
1 files changed, 1 insertions, 2 deletions
diff --git a/.functions b/.functions
index d4f1204..40eba72 100644
--- a/.functions
+++ b/.functions
@@ -248,8 +248,7 @@ function unquarantine() {
# 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-{"$*"}
+ npm install --save-dev ${*/#/grunt-}
}
# `m` with no arguments opens the current directory in TextMate, otherwise