Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Shell Scripting with Zsh
  • Table Of Contents Toc
Learning Shell Scripting with Zsh

Learning Shell Scripting with Zsh

By : Gaston Festari
2.3 (9)
close
close
Learning Shell Scripting with Zsh

Learning Shell Scripting with Zsh

2.3 (9)
By: Gaston Festari

Overview of this book

A step-by-step tutorial that will teach you, through real-world examples, how to configure and use zsh and its various features. If you are a system administrator, developer, or computer professional involved with UNIX who are looking to improve on their daily tasks involving the UNIX shell, Learning Shell Scripting with zsh will be great for you. It’s assumed that you have some familiarity with an UNIX command-line interface and feel comfortable with editors such as Emacs or vi.
Table of Contents (13 chapters)
close
close

Command correction


Completion can also correct any misspelled commands that you might have typed. We'll use the following format for our style:

zstyle ':completion:*' completer _expand _complete _correct

And we'll test the autocorrect functionality with the following:

% prnti<Tab>
corrections (2 errors)
print   printf
original
prnti

Zstyle noticed that we misspelled print and is being quite verbose regarding this. Remember you can use the Tab key to cycle through the list of available options.

Alternatively, you could use the correct option if you want a more "hold me by the hand" approach. Specifically, this option will make zsh ask you for confirmation every time it suggests a correction:

% setopt correct
% prnti<Tab>
zsh: correct 'prnti' to 'print' [nyae]?

This peculiar nyae acronym stands for No, Yes, Abort, and Edit, and works in the following way:

  • n: This will force the shell to execute whatever you typed in the command line (prnti in this particular case).

  • y: This will execute...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Shell Scripting with Zsh
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon