-
Notifications
You must be signed in to change notification settings - Fork 556
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
Fish: Allow cd aliasing #145
Comments
The fix looks like it would be on this line. |
I would like to reopen this issue since it still (or more like again) existsSince the referenced pullrequest was merged, the line in question was first changed in 7b00d5a and then fully reverted in acc9059 . I just started trying out fish, so I don't know a lot about it. Anyways: As far as I understand, the problem is that I also have an idea on how this could be solved:The recursion problem occurs when using That might look like this:
And then in the I'll create a pull request when I find the time, except if you give a reason why this is bad before that 😄 |
@dnlmlr that's a great idea, go ahead. |
This problem is still present for me: I'm multiple-sourcing the config.fish (starship and zoxide) and placing the alias after the source, but it's still creating the recursive call @ajeetdsouza |
@federicotorrielli are you compiling and running the latest commit from GitHub? Because this feature hasn't made it into a point release yet. |
I'm so stupid, I forgot to check the release tab! |
Haha, that's alright! I'll create a release for this sometime soon. |
I've just done a fresh install of zoxide from apt on a kde neon install and have the infinite loop issue with fish still. The initial apt install was an old version by the looks of things so I have now purged that and got 0.8.3 deb and installed that, but, I get the same effect if I alias cd z in my config.fish. Peter. |
@pnunn can you verify that you're actually on the latest version?
|
Thanks @ajeetdsouza. That returns 0.8.3 so it seems to be the correct version. |
@pnunn I can't reproduce this. Could you create a fresh issue with your setup, etc? |
I would like to add I'm also on latest release and the issue is still present. I'm on arch Linux without too many changes to fish. I personally am just dealing with it now and trying to build muscle memory with z instead of cd but wanted to mention it doesn't seem to be completely isolated. |
@Vixeliz do open a new issue with your fish version and configuration. |
@Vixeliz |
Nope @MZH-Amr same thing still happens. Sorry... it's been a long time since I looked at this. YAY |
I got the recursion issue but it's my mistake by manually save the alias using
|
As per the documentation, you can achieve the same with
|
It worked. Thank you |
thanks for sharing this info, i've tried both methods, however now fish doesn't show suggestions for cd 🤷♂️, any thoughts ? |
Really cool plugin, just started using it with fish.
Ran into issue trying to alias
cd
toz
, where zoxide tries to call my alias, which calls zoxide, which calls my alias, until stack overflow.zoxide init fish
outputs this internal command (among other things):However, it should be:
In fish, command makes sure to call out instead of calling functions.
I'm not familiar with zoxide's codebase, so I didn't know where to put the fix, otherwise I'd PR myself.
The text was updated successfully, but these errors were encountered: