aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2021-10-14 10:41:27 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2021-10-14 10:41:27 +0200
commit307ef47a56f720c1b548f7e27acd4f3a306f436b (patch)
treeb0b74957cc4b1c063d96d189fba0e6b43e1f7456
parentf493f81172ae2c38ffa93a3b651d24c84d00b11f (diff)
downloaddotfiles-307ef47a56f720c1b548f7e27acd4f3a306f436b.tar.gz
dotfiles-307ef47a56f720c1b548f7e27acd4f3a306f436b.zip
[fish] fix fallback wrapper and use native realpath
-rw-r--r--config/fish/config.fish2
-rw-r--r--config/fish/fish_add_path_fallback.fish2
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