Jan 9, 2014

Some Tricks in using zsh

These are part of the tricks that I like most about zsh:

ESC-. [ Escape period ]
Inserts the last argument of the previous history line, repeat to go back in history.

ESC-'  [ Escape single-quote ]
To quotes the whole line. (Useful for su -c or ssh).

ESC-q [ Escape q ]
To clears the line and inserts it again on the next prompt, allowing you to issue an interim command.

ESC-RETURN [ Escape ENTER ]
To inserts a literal newline, so you can edit longer commands easily.

References:

  • http://chneukirchen.org/blog/archive/2008/02/10-zsh-tricks-you-may-not-know.html
  • http://www.rayninfo.co.uk/tips/zshtips.html
  • http://grml.org/zsh/zsh-lovers.html