From 307ef47a56f720c1b548f7e27acd4f3a306f436b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 14 Oct 2021 10:41:27 +0200 Subject: [fish] fix fallback wrapper and use native realpath --- config/fish/fish_add_path_fallback.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/fish/fish_add_path_fallback.fish') diff --git a/config/fish/fish_add_path_fallback.fish b/config/fish/fish_add_path_fallback.fish index 4b0b045..e9233c3 100644 --- a/config/fish/fish_add_path_fallback.fish +++ b/config/fish/fish_add_path_fallback.fish @@ -47,7 +47,7 @@ function fish_add_path_fallback --description 'Add paths to the PATH' # We could add a non-canonical version of the given path if no duplicate exists, but tbh that's a recipe for disaster. # realpath complains if a parent directory does not exist, so we silence stderr. - set -l p (builtin realpath -s -- $path 2>/dev/null) + set -l p (realpath -s -- $path 2>/dev/null) # Ignore non-existing paths test -d "$p"; or continue -- cgit v1.2.3