Skip to content
New issue

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

support path alias? #608

Closed
pedoc opened this issue Aug 16, 2023 · 2 comments
Closed

support path alias? #608

pedoc opened this issue Aug 16, 2023 · 2 comments

Comments

@pedoc
Copy link

pedoc commented Aug 16, 2023

For example, can I do

zoxide add C:\aaaa\bbbbb\cccc\dddd nice-name
z nice-name //This will jump to C:\aaaa\bbbbb\cccc\dddd
@ajeetdsouza
Copy link
Owner

This seems much better served by just a regular alias:

alias nice-name='cd "C:\aaaa\bbbbb\cccc\dddd"'

That way, you can also back it up with the rest of your dotfiles. zoxide is meant to be automatic - the user should not have to think about setting up aliases manually.

@eugenesvk
Copy link
Contributor

Your suggestion of using regular aliases breaks the universal nature of the "z to cd workflow", so that's why it'd be better to set up an alias as z nice-name rather then nice-name

While the automatic nature of z is a nice default, the is still an issue that it's not 100% predictable, which aliases solve - you can always be certain to z to a given frequent dir regardless of its frecency match (besides the other benefit of a more convenient name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants