mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-20 02:42:44 +08:00
Silence curl and fix www.gitignore.io API url, which now requires www.
This commit is contained in:
parent
3a6b0f2e8d
commit
a8d5fad488
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue
Block a user