mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
__fish_apropos: Define again on non-macOS
This had a weirdly broken if condition.
This commit is contained in:
parent
b9b2010342
commit
19004642ba
@ -8,8 +8,8 @@ end
|
|||||||
# https://en.wikipedia.org/wiki/Darwin_(operating_system)
|
# https://en.wikipedia.org/wiki/Darwin_(operating_system)
|
||||||
set -l sysver (uname -sr | string match -r "(Darwin) (\d\d)"\.)
|
set -l sysver (uname -sr | string match -r "(Darwin) (\d\d)"\.)
|
||||||
|
|
||||||
test $status -eq 0 -a (count $sysver) -eq 3
|
if test $status -eq 0 -a (count $sysver) -eq 3
|
||||||
and if test $sysver[2] = 'Darwin' -a $sysver[3] -ge 19
|
and test $sysver[2] = 'Darwin' -a $sysver[3] -ge 19
|
||||||
|
|
||||||
if test -n "$XDG_CACHE_HOME"
|
if test -n "$XDG_CACHE_HOME"
|
||||||
set dir $XDG_CACHE_HOME/fish
|
set dir $XDG_CACHE_HOME/fish
|
||||||
@ -48,5 +48,4 @@ else
|
|||||||
function __fish_apropos
|
function __fish_apropos
|
||||||
apropos $argv
|
apropos $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user