ajeetdsouza / zoxide

A smarter cd command. Supports all major shells.
MIT License
20.54k stars 523 forks source link

Error whilst installing zioxid in zsh on warp terminal #720

Closed sneazy-ibo closed 3 months ago

sneazy-ibo commented 4 months ago

I started by running the following command as instructed in the guide

curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash

got a message that I need to add /Users/ibo/.local/bin to my path I did that with nano and saved the line to my ~/.zshrc file

image

next thing was configuring zoxide, however the command compinit was undefined for me and I could not get it defined

image

after adding a new line called eval "$(zoxide init zsh)" to my ~/.zshrc file as seen I ran rm ~/.zcompdump*; compinitand restarted my terminal

after all this procedure which z just gives me an z not found error am I missing out on smth?

ajeetdsouza commented 4 months ago

You need to load compinit first:

autoload -Uz compinit
compinit

which z will not work, since z is defined as a function. Try using z directly and see if the command is found.

rod-stuchi commented 4 months ago

I have similar issue with 0.9.4 on ZSH

image

My workaround was to downgrade to 0.9.2 export zoxide init zsh to a file Upgrade to 0.9.4 and than source that file from 0.9.2 zoxide init zsh is not working for me in ZSH

github-actions[bot] commented 3 months ago

This issue has been automatically closed due to inactivity. If you feel this is still relevant, please comment here or create a fresh issue.