O'Reilly logo

From Bash to Z Shell: Conquering the Command Line by Peter Stephenson, Jerry Peek, Oliver Kiddle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required