mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-20 03:27:47 +08:00
Use ping's timeout param for OSX compat
This commit is contained in:
parent
8016454858
commit
3a6b0f2e8d
|
@ -8,7 +8,7 @@ end
|
||||||
|
|
||||||
# enable the complation by invoking `gi list`
|
# enable the complation by invoking `gi list`
|
||||||
if not set -q -g 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
|
set gi_available $status
|
||||||
|
|
||||||
if test $gi_available
|
if test $gi_available
|
||||||
|
|
Loading…
Reference in New Issue
Block a user