Get it from https://github.com/ajeetdsouza/zoxide/releases
Download zoxide-0.9.9-x86_64-unknown-linux-musl.tar.gz or the latest version.
Currently in /data/archive/Utilities/Zoxide/
Copy into /tmp
Also copy the profile script, zoxide.sh, either into /etc/profile.d or to /tmp, but then copy it to /etc/profile.d afterwards.
In any event, it should ultimately end up in /etc/profile.d
Extract it into /tmp tar xzvf zoxide-0.9.9-x86_64-unknown-linux-musl.tar.gz
Verify that it's some sort of Linux executable: (any sort of executable but it should not be a script)
Change its owner to root: chown root:root zoxde
Copy the executable to /usr/local/bin
cp zoxide /usr/local/bin
The first time you go to a given directory, either use the conventional cd command with a path, or use the z command with an explicit path.
You only have to do it once.
After the first time visiting any directory, zoxide will match a fragment of a directory name when you mention it with the z command.
If more than one directory matches what you type, it will go to the one you use more frequently.
Repeating the exact same command will go to another match.
To manually add a directory:
To remove a memorized path:
To use an interactive picker: You need fzf to be installed.
History / database inspection:
List all tracked directories:
Show score of current working directory:
Show score of all directories:
Use in scripts:
The zoxide database is non-volatile and is maintained per-user in ~/.local/share/zoxide/db.zo
Zoxide uses a single local binary database file, not a traditional database engine like SQLite or Redis. It is a Rust-native serialized store.
--
Homepage: http://www.milwaukeelug.org/home
This forum online: https://groups.google.com/forum/#!forum/MilwaukeeLUG
---
You received this message because you are subscribed to the Google Groups "Milwaukee Linux User's Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to MilwaukeeLUG...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/MilwaukeeLUG/658765ba-cab4-41e2-be09-7c5b974576a5n%40googlegroups.com.