Closed toxic0berliner closed 2 weeks ago
I found my issue...
Seems zoxide needs a hook in $PS1.... I found out in https://github.com/ajeetdsouza/zoxide/issues/270 ...
And my bashrc was rewriting PS1 after loading zoxide...
I've changed it to load zoxide last... And now it seems it's starting to work... the db is growing...
Probably someone might want to document the fact that one shall it needs PS1 ?
whell stangely I don't see any reference to zoxide in my PS1 but now it works...
This is my PS1 for the record \[\033[1;30m\](andromeda)(\[\033[0;31m\]\u\[\033[1;30m\]:\[\033[0;33m\]\w\[\033[1;30m\])\[\033[0;31m\]>\[\033[0m\]
Maybe something else was blocking ? I'd like to find out cause I'd like to put zoxide back in my .bash_aliases instead of at the end of .bashrc..
Or maybe it's the way I invoked my .bash_aliases ?
(andromeda)(root:~)> cat -r 146:148 .bashrc
───────┬────────────────────────────────────
│ File: .bashrc
───────┼────────────────────────────────────
146 │ if [ -f ~/.bash_aliases ]; then
147 │ . ~/.bash_aliases
148 │ fi
───────┴────────────────────────────────────
zoxide does require $PS1
to function, as you've discovered. That is the reason it needs to be called at the end of your config file. It's been mentioned in the README too:
Oups, should have read better sorry and thanks @ajeetdsouza !
I was looking for a chat as I believe something is wrong on my side but can't figure out what. I always get no match found by zoxide, the db is not growing despite my cd-ing all day long..
my setup :
as you can see the db seems stuck at 12 bytes and iis not moving. I can trash the file, change it's permissions, do anything to it it just comes back at 12 bytes and never gorws anything...
This is how it's getting loaded:
which seems to work :
I'm running inside an lxc on my pve but that shouldn't change anything I believe.
I've "installed" zoxide using apt-get before, it was an old version and was broken as well with the same issue, so I switched to the latest I got using eget (downloads & extracts the latest musl binary from github...)
I've found I had
export PATH=$PATH:~/.local/bin
that was causing me issues in my.bashrc
but I changed it to$HOME
instead of~
but it didn't fix my issue with zoxide... now PATH is fine :Finally I'm stuck with this every time :
any help finding out why or getting some logs from zoxide would be helpful !
Thanks in advance for your kind help