Book description
Your one-stop guide to reading, writing, and debugging simple and complex Z shell scripts
In Detail
Zsh has become incredibly popular in recent times and reasonably so; the shell boasts some really great features such as command completion, filename generation, and history sharing among instances of the shell. Learning to use them to your advantage will prove to be really valuable and will save you from lots of tedious and overly-complex tasks.
This hands-on guide will show you how to configure and use zsh for work and daily tasks. It provides a clear introduction to the more powerful features of the shell such as globbing and completion. This book will help you take advantage of the real power behind the UNIX shell on both desktops and servers through real-world examples.
This book will help you understand the features of zsh and make it one of the most valuable assets in your toolbox. It will teach you how to use the shell history to look up and edit previously typed entries and take advantage of the line-editor module to speed up your typing and editing of commands. You will be able to create your own completion functions and ensure you never mistype a command or have to look at the manpages again.
You will learn how to define your own aliases and learn about filename generation so you can do more by typing even less. You will also discover the essentials of zsh and go deeper with its more advanced features. When you are done with this book, your time with the command line will be much more enjoyable and productive.
What You Will Learn
- Set up and configure the advanced aspects of zsh such as process and parameter substitution, running on restricted functionality mode, and emulating other shells, for example, ksh and Bourne
- Customize the shell prompt to display the information you need
- Work with the line-editor module to type less and do more
- Use filename generation, also known as globbing, to work with files and folders
- Discover programmable completion and never mistype a command or its options again
- Tame the shell history and use it simultaneously on multiple shells with just a few keystrokes
- Expand on zsh’s built-in modules and functionality by creating your own functions
Table of contents
-
Learning Shell Scripting with Zsh
- Table of Contents
- Learning Shell Scripting with Zsh
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Getting Started
- 2. Alias and History
- 3. Advanced Editing
- 4. Globbing
- 5. Completion
- 6. Tips and Tricks
- Index
Product information
- Title: Learning Shell Scripting with Zsh
- Author(s):
- Release date: January 2014
- Publisher(s): Packt Publishing
- ISBN: 9781783282937
You might also like
book
Learning the bash Shell, 3rd Edition
O'Reilly's bestselling book on Linux's bash shell is at it again. Now that Linux is an …
video
Zsh in macOS: Terminal Commands for Unix
Become a macOS power user while also learning skills necessary to become a competent programmer. Apple …
book
Linux Command Line and Shell Scripting Bible, 4th Edition
Advance your understanding of the Linux command line with this invaluable resource Linux Command Line and …
video
Linux Fundamentals
The second edition of this video title is available. Please go to Linux Fundamentals, 2nd Edition …