Cannot edit paths in the zoxide database
Author: nadiamoeCreated Oct 8, 2024Updated Sep 24, 2026
I recently renamed my home folder (e.g. from /home/old to /home/new). Unfortunately this rendered my precious zoxide database useless.
I'd like to be able to replace occurrences of /home/old to /home/new in the zoxide database, but I haven't figured out how.
What I've tried:
sed -i s/old/new/g ~/.local/share/zoxide/db.zo. This breaks the database (understandably).zoxide edit. Doesn't seem to provide a way to actually edit paths, just scores.zoxide import. This sounded promising, but there is nozoxide export.
Something that allows editing the db as a plaintext file would be amazing for these cases.
Source: ajeetdsouza/zoxide