Live data from Hacker News

Behold z, the unsung jewel that rethinks shell navigation

aymericbeaumet.com

31–40 of 71 posts

Re: Behold z, the unsung jewel that rethinks shell navigation

#31

I develop apps on Windows, but I use Linux to do lots of my work and automate cumbersome boring tasks where I can (there are still many more to be automated....). I'm constantly amazed at what Windows dev people can get done without a programmable command line. I've seen several thousand line long cmd/bat files to do relatively simple things. They work, which is good. They are a lot of work to maintain though. I find…

Windows doesn't lack a programmable command line. If the Windows devs around you are writing bat files, they need to be introduced to PowerShell.

Re: Behold z, the unsung jewel that rethinks shell navigation

#32

This sounds just like autojump (typically run using `j`) to me: https://github.com/wting/autojump Agree that it's an invaluable piece of software!

Any idea what the differences are? Am I missing anything by keeping to use autojump?

Seems like autojump used to work with regexps but now it's something custom. Z works with regexps.

Re: Behold z, the unsung jewel that rethinks shell navigation

#33
Oh-my-zsh with the fzf plugin has a lot of navigation-friction removal.

    cd ~/r/pr/e/de
Becomes

    cd ~/repos/projectlongname/environments/development
It also has built in push/pop, with minus always returning to the previous path, various numbers of dots, up to six I believe, navigating up the tree, and cd - showing interactive breadcrumbs of recent paths for easy as click-and-click navigation.

Re: Behold z, the unsung jewel that rethinks shell navigation

#35
post #20

It sounds terrific. Also make sure to check out the fish shell if you haven't before. It's tab completions/up-arrow completions including for cd are really useful in a similar way.

I’ve used fish for quite a while but after Many a scripting incompatibility I went back to ohmyzsh. Fish is great if you can port your whole ecosystem into it.

Re: Behold z, the unsung jewel that rethinks shell navigation

#37
post #22
post #9

I use zoxide - a modern z written in Rust. https://github.com/ajeetdsouza/zoxide

z.sh is a 243-line shell script. What makes this Rust version better or more modern?

given that zoxide is not bash, it works in other shells like fish

Re: Behold z, the unsung jewel that rethinks shell navigation

#39
post #37
post #22

Earlier quoted context omitted.

z.sh is a 243-line shell script. What makes this Rust version better or more modern?

given that zoxide is not bash, it works in other shells like fish

I don't know about fish, but z does work in zsh at least.

Re: Behold z, the unsung jewel that rethinks shell navigation

#40
post #35
post #20

It sounds terrific. Also make sure to check out the fish shell if you haven't before. It's tab completions/up-arrow completions including for cd are really useful in a similar way.

I’ve used fish for quite a while but after Many a scripting incompatibility I went back to ohmyzsh. Fish is great if you can port your whole ecosystem into it.

I find the persistent directory stack of ohmyzsh (easy enough to enable yourself in zsh) easier to use than things like autojump or z, and pretty much makes them unnecessary. I miss this basic functionality in fish (hoping someone will point out that I have overlooked it)
Post reply on HN