Linux Advent Calendar: "24 Outstanding ZSH Gems"
First time submitter Manko10 writes "After the Advent series last year, there is again a Linux Advent calender. The topic of this year's Advent series is '24 Outstanding ZSH Gems'. Every day from December 1st until December 24th an article will be published each covering a special feature of the Z Shell you might not have known yet."
brilliant!
Well, that'll get you through... what, the first page of the manual?
The damn thing has a built-in tcp command system (ok, I think it's technically a "module"). The main man page is just a redirect page. Hell, it might even rival emacs for complexity. I know, I didn't think it was possible either...
"None can love freedom heartily, but good men; the rest love not freedom, but license." --John Milton
I wasn't familiar with zsh until I used grml (a fairly handy debian-based live distro, I use for fixing things on occasion). It comes with a pretty spiffy zshrc and zsh by default, which opened me to some of the features of it... pretty nifty... Now I use zsh on everything.
Some info about grml's use of zsh, here.
Sent from my PDP-11
I started using zsh the instant I read about ** globs.
Bash has them now, but I see little reason to switch back.
Yep, I too strongly recommend zsh. The command line completion especially is far, far better than bash. Although you pretty much have to create (or download: there are quite a few good ones online) an extensive zshrc file to use it properly. Thanks for pointing out grml, I might have to look into using that in the future.
"None can love freedom heartily, but good men; the rest love not freedom, but license." --John Milton
Not a ZSH gem, but this is probably the last word in BASH prompts.
PS1='C:$(echo ${PWD//\//\\\} | tr "[:lower:]" "[:upper:]" |
sed -e"s/\\([^\\]\\{6\\}\\)[^\\]\\{2,\\}/\\1~1/g" ) >'
you'd be wise not to trust random code, but if you look carefully it uses only echo, tr and sed, none of which have programmable IO and only piping, so it is safe.
SJW n. One who posts facts.
It's spelled "calendar."
Here's a gem:
In my country Shell petrol stations have recently re-branded as: Z
Co-incidence? I think not.
"Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife
Who does major shell programming, when they can use perl instead?
Maybe I'm ill informed since I've only run "Redhatty" distros (SCEfoos wacky Kondara-ized RH6 on the PS2, YDL, and now Fedora) but isn't bash the standard shell for Linux? So wouldn't bash tricks be more useful?
...I'm seeing a blog. Is there an Advent calendar somewhere that I'm missing?
Their they're doing there hair.
For some reason which I don't really understand, my .zshrc is the top hit on Google UK for "zshrc".
It doesn't have anything amazing, but some of it is useful to know about (from zstyle onwards, mostly).
There's also https://github.com/robbyrussell/oh-my-zsh that adds some nice features, and has a really active community.