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/config.fish | 2 +- config/fish/fish_add_path_fallback.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/fish/config.fish b/config/fish/config.fish index 04f1b18..470382c 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -5,7 +5,7 @@ umask 027 if not functions -q fish_add_path function fish_add_path - fish_add_path_fallback + fish_add_path_fallback $argv end end 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