Merge pull request #123 from dgarrett/master

Fix gitignore.io plugin URL
This commit is contained in:
Bruno 2014-02-28 13:03:54 -03:00
commit ede30d9f04

View File

@ -1,14 +1,13 @@
# 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`
if not set -q -g gi_list
timeout 2 ping -c 1 -q gitignore.io >/dev/null
ping -t 2 -c 1 -q gitignore.io >/dev/null
set gi_available $status
if test $gi_available