From 80760af90fbfe4519ece48b1858ef06e36fd762b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20Mari=C8=99?= Date: Tue, 15 Apr 2014 16:24:04 +0200 Subject: [PATCH] .functions: Make `gi` accept any number of arguments Closes #367. --- .functions | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.functions b/.functions index d4f12049932..40eba720d5f 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