From 608b0b4de6badbd574189c69023bded36875f575 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Fri, 19 Jul 2024 18:32:08 +0900 Subject: [PATCH] Revert path builtin change Reverts change introduced in faf9223, as this breaks Fish versions without the builtin. See #371 --- 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 e1df158..123c702 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 (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