mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-28 11:16:03 +08:00
Merge pull request #123 from dgarrett/master
Fix gitignore.io plugin URL
This commit is contained in:
commit
ede30d9f04
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user