functions/realpath: remove weird wrapping

Wrapping the same thing is redundant and wrapping grealpath is kinda
pointless since we only provide completions for realpath.

(cherry picked from commit 61b0368dac)
This commit is contained in:
Johannes Altmanninger
2025-09-29 09:30:35 +02:00
parent 03f4bf262a
commit 1f96e58852

View File

@@ -7,7 +7,7 @@
# However, we only want our builtin if there is no external realpath command.
if command -sq realpath
function realpath -w realpath -d "print the resolved path [command realpath]"
function realpath -d "print the resolved path [command realpath]"
command realpath $argv
end
exit 0
@@ -15,7 +15,7 @@ end
# If there is a HomeBrew installed version of GNU realpath named grealpath use that.
if command -sq grealpath
function realpath -w grealpath -d "print the resolved path [command grealpath]"
function realpath -d "print the resolved path [command grealpath]"
command grealpath $argv
end
exit 0