Skip to content

Commit

Permalink
.functions: Make gi accept any number of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
alrra authored and mathiasbynens committed Apr 15, 2014
1 parent 9f0a483 commit 80760af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80760af

Please sign in to comment.