Skip to content

Commit 61b0368

Browse files
committed
functions/realpath: remove weird wrapping
Wrapping the same thing is redundant and wrapping grealpath is kinda pointless since we only provide completions for realpath.
1 parent 568b4a2 commit 61b0368

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/functions/realpath.fish

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
# However, we only want our builtin if there is no external realpath command.
88

99
if command -sq realpath
10-
function realpath -w realpath -d "print the resolved path [command realpath]"
10+
function realpath -d "print the resolved path [command realpath]"
1111
command realpath $argv
1212
end
1313
exit 0
1414
end
1515

1616
# If there is a HomeBrew installed version of GNU realpath named grealpath use that.
1717
if command -sq grealpath
18-
function realpath -w grealpath -d "print the resolved path [command grealpath]"
18+
function realpath -d "print the resolved path [command grealpath]"
1919
command grealpath $argv
2020
end
2121
exit 0

0 commit comments

Comments
 (0)