-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disabling cd on fish broke zoxide #553
Comments
I found a workaround by defining the following |
zoxide uses the fish cd function under the hood, so the solution is simply to change the cd function after calling zoxide: if status --is-interactive
zoxide init fish | source
end
function cd
if status is-interactive
echo "Use z"
return 1
end
builtin cd $argv
end |
This issue has been automatically closed due to inactivity. If you feel this is still relevant, please comment here or create a fresh issue. |
Doesn't work for me, if I use z instead it still says "Use z". |
@sascha-wi could you create a separate issue for this? |
Hi, I wanted to "disable cd" for interactive use to change my muscle memory.
type this in your shell and it works!
cd is disabled and z works!
let's
funcsave cd
then start a new terminalcd is disabled but z says now "Use z"...
PS: in my config file I have the following:
System info:
The text was updated successfully, but these errors were encountered: