-
Notifications
You must be signed in to change notification settings - Fork 582
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
'zoxide init --cmd cd bash' causing using cd to crash terminal #694
Comments
I also have this issue in some cases. On Windows 10 through WSL (Ubuntu 22.04.2) the commands work just fine. On a native Linux machine (Ubuntu Server 22.04.3) it has similar behaviour. Rebinding z and zi to cd and cdi will cause the crash, as well as leaving the z and zi commands as is. I am using SSH from my WSL shell into the native box. |
I have a similar issue with fish |
I have the same issue using both bash and zsh. |
I also have this issue with ZSH Edit: This is the output from
|
Chiming in that I'm facing the same issue with zsh, but only on my Linux servers, one is running Ubuntu (server) 22.04.3 LTS x86_64 and the other Debian GNU/Linux 11 (bullseye) x86_64. On my host (macOS 14.2.1 23C71 x86_64) it works just fine. All of them use similar setups of zsh + oh-my-zsh as shell and Starship as prompt for as much as that is worth. I have applied the workaround from NoNamePaul, but even delegating it to a separate file ( |
Having the same issue with zsh, installed from apt and running eval |
+1 for me as well on Ubuntu 22.04 WSL running with |
same issue for me here cd also returns |
Debian / Ubuntu derivatives package a very old version of zoxide in their repositories. The latest version shouldn't have this problem - could you try using the install script? curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash |
I had the same issue as mentioned by others when installing using Debian Installing |
ah sorry for the inconvenience, I would have never thought of that. Yes, that fixed it for me, thanks! |
I've edited the README to strike out outdated package repositories to prevent future confusion. Thanks! |
Just had the same issue on my Ubuntu 22.04.3 system where I installed zoxide using
|
@kbcmdba the solution is posted in the thread. |
Thanks for that. I got it. Everything seems to be working fine.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: ajeetdsouza ***@***.***>
Sent: Thursday, February 22, 2024 4:38:45 PM
To: ajeetdsouza/zoxide ***@***.***>
Cc: KB Benton ***@***.***>; Mention ***@***.***>
Subject: Re: [ajeetdsouza/zoxide] 'zoxide init --cmd cd bash' causing using cd to crash terminal (Issue #694)
@kbcmdba<https://github.com/kbcmdba> the solution is posted in the thread.
—
Reply to this email directly, view it on GitHub<#694 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAZ2PFL6DWNM4SMZUO4GGYDYU63GLAVCNFSM6AAAAABDJI67L6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQGM3DCMRZGY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
This fixed it for me as well in my WSL Ubuntu 22.04 |
Hello,
just installed zoxide and I seem to be having difficulties with the --cmd flag. If i set the line in my bashrc to
eval "$(zoxide init --cmd cd bash)"
then when I use cd it will hang for a minuite or so then either do nothing or crash the terminal.Interestingly it only seems to happen when it is set to cd. Though setting it to 'ls' gives the following error message when I boot my terminal
setting it to other options seems to work fine (i.e.
j
,test
) it seems for now a simple alias will work, but I'm certain the --cmd flag exist for a reason.Am I missing something on how to set up or is this non-expected behavior?
The text was updated successfully, but these errors were encountered: