ajeetdsouza / zoxide

A smarter cd command. Supports all major shells.
https://crates.io/crates/zoxide
MIT License
23.08k stars 557 forks source link

Set different home directory #902

Closed mtwb47 closed 1 month ago

mtwb47 commented 1 month ago

I do not use a traditional home directory setup. XDG_HOME exists, but I use another directory as a my default (so my hidden files are truly hidden). When I use the z command it takes me to XDG_HOME. Is there a way to set up zoxide to use a different base directory for cd with no arguments?

For example, I have cd set up so that when I run it with no arguments, it takes me to my preferred default directory instead of xdg_home.

I didn't see this as an option in man zoxide, so I thought I'd try asking here.

ajeetdsouza commented 1 month ago

Duplicate of https://github.com/ajeetdsouza/zoxide/issues/869.

mtwb47 commented 1 month ago

Thanks!