Silence curl and fix www.gitignore.io API url, which now requires www.

This commit is contained in:
Dylan Garrett 2014-02-28 00:08:44 -05:00
parent 3a6b0f2e8d
commit a8d5fad488

View File

@ -1,9 +1,8 @@
# gitignore.io cli for fish
function gi
#curl http://gitignore.io/api/$argv
set -l params (echo $argv|tr ' ' ',')
curl http://gitignore.io/api/$params
curl -s http://www.gitignore.io/api/$params
end
# enable the complation by invoking `gi list`