Summary
In this chapter, I introduced you to the concept of scripting in zsh instead of in bash. I began by showing you how to install zsh, if it isn’t installed already. I showed you some of the differences between bash and zsh features that could impact how you’d write a zsh script. These include differences in file globbing, variable expansion, array indexing, and math operations. Along the way, I showed you how these zsh features can help you build scripts that are simpler, yet more functional, than bash scripts.
The main problem with zsh scripting, other than the fact that bash is much more prevalent, is the lack of documentation. There are plenty of tutorials and articles about setting up a zsh user environment, but very little about zsh scripting. Hopefully, you’ll be able to use the knowledge that I’ve provided here to write some cool zsh scripts.
In the next and final chapter, I’ll introduce you to the idea of using PowerShell on...