mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Ensure we use path builtin, not custom functions
This commit is contained in:
parent
e0ea821c27
commit
faf9223022
@ -1258,7 +1258,7 @@ end
|
|||||||
# Polyfill for fish < 3.5.0
|
# Polyfill for fish < 3.5.0
|
||||||
function __bobthefish_closest_parent -S
|
function __bobthefish_closest_parent -S
|
||||||
if builtin -q path
|
if builtin -q path
|
||||||
echo (path sort -r $argv)[1]
|
echo (builtin path sort -r $argv)[1]
|
||||||
else
|
else
|
||||||
string join \n $argv | awk '{ print length, $0 }' | sort -nsr | head -1 | cut -d" " -f2-
|
string join \n $argv | awk '{ print length, $0 }' | sort -nsr | head -1 | cut -d" " -f2-
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user