mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
completions/pkg: Only exit for Solaris, not everything-but-FreeBSD
In e8b6705067
this was made to exit if
not on FreeBSD because Solaris has a tool called "pkg" that apparently
"isn't worth supporting".
Since at least DragonflyBSD also uses FreeBSD's pkg thing, let's turn
that check around.
This commit is contained in:
parent
7c704ce545
commit
0507b046ef
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
# Completions for pkgng package manager
|
# Completions for pkgng package manager
|
||||||
|
|
||||||
if uname | not string match -q FreeBSD
|
# Solaris has a thing called "pkg", it works quite differently,
|
||||||
|
# and spews errors when called like this.
|
||||||
|
if uname | string match -q SunOS
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue