CHAPTER 14Writing Editor Commands

Sometimes you may find that zsh's line editor doesn't quite provide the features you'd like, or that you'd like a quick way of performing frequent tasks. For example, there are commands to move the cursor by characters, words, and lines; maybe you frequently want to move a certain number of characters, or to a particular character, instead. Maybe a command you use frequently to search in the shell's history doesn't leave the cursor in the position you want. Maybe you'd like an editor command to delete a complete command-line argument, even if the argument consists of a complicated quoted expression. Perhaps a command behaves slightly differently from the way it does in another shell; you've seen that bash often ...

Get From Bash to Z Shell: Conquering the Command Line now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.