Earlier quoted context omitted.
I think most of this is out of the box OMZ (without the fzf plugin).
Built-in zsh behaviour in fact, oh-my-zsh just enables some extremely useful non-default options. With a compinit call the directory substring expansion will work. And, with auto_pushd enabled cd fiddles with the directory stack. The ....... behaviour is interesting because it uses a global alias(alias -g) which is an awesome feature for text expansion anywhere in a line, unlike standard aliases which only expand whe…
Behold z, the unsung jewel that rethinks shell navigation
61–70 of 71 posts
Re: Behold z, the unsung jewel that rethinks shell navigation
#62Earlier quoted context omitted.
In my experience, CDPATH is a great way to lose hours chasing down errors throughout your scripts.
"CDPATH= " without the export will work as you'd want, and won't pollute the environment for subshells and scripts. It is unlikely you really want to export anything listed in the shell variables section of the man page, but yeah everybody does :/ [This message brought to you by https://news.ycombinator.com/item?id=22978770 ]
Re: Behold z, the unsung jewel that rethinks shell navigation
#63Re: Behold z, the unsung jewel that rethinks shell navigation
#64I 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…
Re: Behold z, the unsung jewel that rethinks shell navigation
#65Earlier quoted context omitted.
Built-in zsh behaviour in fact, oh-my-zsh just enables some extremely useful non-default options. With a compinit call the directory substring expansion will work. And, with auto_pushd enabled cd fiddles with the directory stack. The ....... behaviour is interesting because it uses a global alias(alias -g) which is an awesome feature for text expansion anywhere in a line, unlike standard aliases which only expand whe…
I'll add that to my Read-Only Friday. I got tossed directly into the zsh/omz/fzf pool head-first from bash, so the borders of what's what are murky. Definitely some powerful stuff, so far.
Seriously though, I think you were probably lucky to have experienced zsh that way. The out of the box experience is incredibly bare. Said as a fellow oh-my-zsh user going back the full twelve years, according to the history of oh-my-zsh's jnrowe theme ;)
I do believe there is a lot of useful knowledge to be gained from working back towards zsh first principles though, especially if -- like me -- you spend hours a day alongside the prompt.
Re: Behold z, the unsung jewel that rethinks shell navigation
#66I'm mildly skeptical of any shortcuts that are based on "learning habits". I've already gotten enough of user interfaces that move items based on use all the time (The spotify playlist list is the worst offender - playlists move up and down in rank after every use, so there is never any spatial memory, startled every time).
I found the per-directory "suggest-while-typing" history in Fish (and Zsh with the right extension) very intuitive. It speeds up getting around the filesystem, and to common locations tremendously, and of course also remembers regular commands. And it "just works", there is nothing to setup and no commands to remember.
Re: Behold z, the unsung jewel that rethinks shell navigation
#67Earlier quoted context omitted.
I found the per-directory "suggest-while-typing" history in Fish (and Zsh with the right extension) very intuitive. It speeds up getting around the filesystem, and to common locations tremendously, and of course also remembers regular commands. And it "just works", there is nothing to setup and no commands to remember.
tried fish for some time for the implicit completion but the otherwise excotic nature of the shell has caused me enough headaces to revert to bash and live with C-R
Best of both worlds, fish-like autocomplete combined with bash-compatibility :)
Re: Behold z, the unsung jewel that rethinks shell navigation
#68I 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…
Re: Behold z, the unsung jewel that rethinks shell navigation
#69I 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…
Re: Behold z, the unsung jewel that rethinks shell navigation
#70I 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.