this post was submitted on 21 Sep 2024
170 points (96.2% liked)

Asklemmy

43411 readers
2043 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] velox_vulnus@lemmy.ml -1 points 1 day ago* (last edited 1 day ago) (3 children)

It's six letters. Can't they just call it zd or something? Yeah sure, I can use aliases, but why complicate in the first place?

[โ€“] alsimoneau@lemmy.ca 2 points 7 hours ago

When you set it up you tell it which command you want. Default is "cdi" but I changed it to "cd" immediately.

[โ€“] Yoddel_Hickory@lemmy.ca 13 points 1 day ago (1 children)
[โ€“] velox_vulnus@lemmy.ml 2 points 1 day ago (1 children)

This is most probably a distro-specific aliasing. Tried it on Guix, it does not work:

$ z
bash: z: command not found

$ zoxide
zoxide 0.9.2
....
[โ€“] unknowing8343@discuss.tchncs.de 3 points 1 day ago (1 children)

It's in the official docs for zoxide, you are supposed to use the z alias, and many distros just set it up directly like that. I love doing z notes from wherever I am.

[โ€“] 7dev7random7@suppo.fi 1 points 23 hours ago

Description fifth point (5.)

That doesn't require a separate package, especially one which uses eval on every new shell. And isn't messing with my distros or personal aliases (and doesn't introduce cargo-packaging).

Simply adding one to two (you get the gist) directories and a keybind for cd .. is more slick. There are cases where you might use pushd . but even then other tooling should already cover your needs.

It's also so easy that you can temporarly append to $CDPATH for a specific session. But again, then a second pane or pushd is already available.

Now downvote me, lemmy.

[โ€“] jeffreyosborne@lemm.ee 3 points 1 day ago

On arch the command is just z