From faf92230221edcf6e62dd622cdff9ba947ca76c1 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Tue, 9 Jul 2024 20:21:46 -0400 Subject: [PATCH] Ensure we use path builtin, not custom functions --- functions/fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 123c702..e1df158 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -1258,7 +1258,7 @@ end # Polyfill for fish < 3.5.0 function __bobthefish_closest_parent -S if builtin -q path - echo (path sort -r $argv)[1] + echo (builtin path sort -r $argv)[1] else string join \n $argv | awk '{ print length, $0 }' | sort -nsr | head -1 | cut -d" " -f2- end