Revert path builtin change

Reverts change introduced in faf9223, as this breaks Fish versions without the builtin.

See #371
master
Justin Hileman 2 months ago committed by GitHub
parent faf9223022
commit 608b0b4de6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1258,7 +1258,7 @@ end
# Polyfill for fish < 3.5.0
function __bobthefish_closest_parent -S
if builtin -q path
echo (builtin path sort -r $argv)[1]
echo (path sort -r $argv)[1]
else
string join \n $argv | awk '{ print length, $0 }' | sort -nsr | head -1 | cut -d" " -f2-
end

Loading…
Cancel
Save