"zoxide: command not found" error on bash shell instance initialization, despite zoxide being accessible in $PATH #705
-
Hello! Namely, the eval statement provided in the documentation to be placed at the end of ~/.bashrc is causing "zoxide: command not found" to be printed whenever a new shell instance is created. The process is clearly not being started. Entering "which zoxide" returns: and echo $PATH returns: I'm able to use the "zoxide" command, proving that zoxide definitely exists somewhere, but the "z" command does not work. zoxide's install location is included in $PATH, so why might bash be unable to find zoxide? And why might the "z" command be broken? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I'm facing this same issue and only once sourcing my .bashrc file does the z command function again. |
Beta Was this translation helpful? Give feedback.
-
Somehow, it seems like Try adding |
Beta Was this translation helpful? Give feedback.
-
In a similar situation, using Ubuntu 22.04 on WSL2, I found that the answer was to put the eval line at the end of |
Beta Was this translation helpful? Give feedback.
Somehow, it seems like
~/.local/bin
is being added to your$PATH
after you calleval
.Try adding
export PATH="$HOME/.local/bin:$PATH"
just before you calleval
in your.bashrc
.