Earlier quoted context omitted.
Is this similar to Oh My Zsh [1]? I personally have been using Oh My Zsh for years and I've always been a fan of it. I can quickly add themes and plugins and have my shell ready to go how I like it quite quickly on new systems. [1]: https://ohmyz.sh/
zsh4humans is like ohmyzsh but much better IMO because when you first install zsh4humans, it walks you through a setup wizard that walks you through choosing your fonts, prompt style, completion style, etc. and automatically installs the appropriate zsh plugins and things like powerline fonts according to your choices.
Zsh Tricks to Blow Your Mind
211–218 of 218 posts
Re: Zsh Tricks to Blow Your Mind
#212I've been using Fish instead and it's much much simpler than configuring ZSH to my liking. It's already good out of the box, without having to carry around any kind of configuration. The only stuff I usually do is to setup `powerline-go` as prompt, and voilà, that's pretty much it.
I rather liked Fish's zero config approach but I found their handling of the PATH very hard to work with day to day. Perhaps it was just my familiarity with having a bunch of statements to alter the PATH in a config file but it felt very opaque, I always had to look up how to add stuff to the PATH and I had great trouble trying to remove stuff from the PATH.
E.g. to permanently add `~/.cargo/bin/` to your PATH just do
set fish_user_paths $fish_user_paths ~/.cargo/bin
once from an interactive shell, and you’re done!Re: Zsh Tricks to Blow Your Mind
#213Earlier quoted context omitted.
> 5. `qalc` from libqalculate: https://github.com/Qalculate/libqalculate Or, you know, any REPL available.
Or a simple `=() { bc -l Just a little shortcut but REPLs like Python's take a while to spin up, so it's pretty convenient.
Re: Zsh Tricks to Blow Your Mind
#214Earlier quoted context omitted.
It seems fast enough but once you enter an actual directory of code where it needs to get the version of node, kotlin, package, etc it slows down noticeably. I've ended up disabling most packages because it is absurd to (I assume) be running node --version every time a prompt is generated. It's a shame they can't do these things asyncronously or cache them.
Caching is a bit dangerous, and most shells don't support asynchronous prompt updates. And cross-shell support seems to be a prime feature. Spending probably a lot of effort just for improving zsh experience might just not have been important enough yet.
Turns out my main issue was due to having a slow node --version command due to using asdf!
This project was a huge help: https://github.com/danhper/asdf-exec
Re: Zsh Tricks to Blow Your Mind
#215A lot of these can be easily done in Bash, too! 1. `mkcdir () { mkdir -- "$1" && cd -- "$1"; }` 2a. `bind '"\e[A":history-search-backward'; bind '"\e[B":history-search-forward'` 2b. Default behavior for Bash. 3. `shopt -s autocd` 4. `mmv`, `perl-rename` 5. `qalc` from libqalculate: https://github.com/Qalculate/libqalculate 8. Default behavior for Bash. 9. Default behavior for Bash.
> 4. `mmv`, `perl-rename` I didn't have this on my system. I like the article because this was a command I've needed many times without realizing it.
Re: Zsh Tricks to Blow Your Mind
#216Earlier quoted context omitted.
A "dizzying assortment of features" is not automatically a good thing. The features need to be able to do useful things better somehow, and that's where articles demoing such applications come in. "Better" also doesn't necessarily mean "more concise," otherwise APL would be one of the best programming languages. A language with a smaller number of accessible, comprehensible, memorable features can prove more useful i…
I've used Zsh for 15 years or more, and when I started I read the manual. (I realize this is unthinkable nowadays.) I noted down the things I thought would be useful day-to-day, and started using them. A few months later, I skimmed through the manual again. I still do so, every year or two. My work gradually changes, and I find Zsh has features that are now useful to me. This is the suggested manpage: https://linux.d…
The issue is how to decide whether something is worth looking at.
An article which gives examples that can easily be achieved by some more mainstream system is unconvincing. That's what was being discussed here:
> This is always my complaint about posts like this. I read them looking for the killer feature to make me consider switching from bash and it's always stuff bash does natively or with a one line alias.
> This is the suggested manpage: https://linux.die.net/man/1/zshexpn
Yes, the comment I replied to already suggested that. You're not doing much to convince me that your judgment is worth respecting.
Re: Zsh Tricks to Blow Your Mind
#217Earlier quoted context omitted.
I'd also dare to bet the author's favourite pizza is Hawaiian/pineapple
Salty/sweet contrast is the core of Hawaiian pizza appeal, and flavour/texture contrasts are the foundation of some of the most interesting foods, for instance salted caramel, pork and apples, etc.
This is especially true for tomato, which unless very sweet and acidic like in sticky sauce, it doesn't go well at all with pineapple.
Re: Zsh Tricks to Blow Your Mind
#218And if you use my (8 year old) PR you can "take" remote URLs, downloading and extracting tarballs and cloning git repos:
https://github.com/ohmyzsh/ohmyzsh/pull/2029
Example:
take https://github.com/torvalds/linux.git
# you're now in the cloned directory