Zsh cheatsheetEdit

Miscellaneous

  • vared VAR: edit variable inline

Command line substitution

  • !! previous command
  • !$ last parameter of previous command
  • !^ first parameter of previous command
  • !* all parameters of previous command
  • !str last command beginning with "str"
  • !?str last command containing "str"

Parameter expansion (see man zshexpn)

  • ${=VAR} split $VAR into words

See also