Replies: 2 comments
-
There's not an easier way when you want to keep the old function around instead of replace it, no. You could test if if not functions -q _cd_orig
if not functions -q cd
source /opt/homebrew/share/fish/functions.cd.fish
end
functions -c cd _cd_orig
end Though it's not a big deal, unless you are sourcing the file this belongs in often. |
Beta Was this translation helpful? Give feedback.
0 replies
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Normally to overwrite a function you can use
builtin
or a path to a binary.But specifically when I'm overwriting
cd
it's a bit clunky:Is there an easier way to do this?
Beta Was this translation helpful? Give feedback.
All reactions