We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I recently renamed my home folder (e.g. from /home/old to /home/new). Unfortunately this rendered my precious zoxide database useless.
/home/old
/home/new
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
zoxide edit
zoxide import
zoxide export
Something that allows editing the db as a plaintext file would be amazing for these cases.
The text was updated successfully, but these errors were encountered:
For now I've worked around this in (probably) the worst way possible:
z () { __zoxide_z "$@" cwd=$(pwd) if [[ $cwd =~ "/home/old/*" ]] then zoxide remove "$cwd" cwd=${cwd/old/new} zoxide add "$cwd" cd "$cwd" fi }
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: