tmux can't find zoxide
majinaru opened this issue · 4 comments
majinaru commented
ajeetdsouza commented
What's the output of echo $PATH
in both cases?
majinaru commented
terminal:
/home/joao/.cargo/bin:/home/joao/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/joao/.fzf/bin
tmux:
/home/joao/.nvm/versions/node/v21.7.0/bin:/home/joao/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/joao/.fzf/bin
ajeetdsouza commented
Linux looks for executables (like zoxide) in $PATH
- in the first case, I can see /home/joao/.local/bin
is present, but it isn't there in the second case. Something is overriding your PATH here.
If you can't find what is overriding your PATH, I would add this line just before the eval
statement that initializes zoxide:
export PATH="$HOME/.local/bin:$PATH"
majinaru commented
Thank you, it worked!