Skip to content

Instantly share code, notes, and snippets.

@speto
Last active May 2, 2016 14:12
Show Gist options
  • Save speto/c30a781ac31e4ef05e10 to your computer and use it in GitHub Desktop.
Save speto/c30a781ac31e4ef05e10 to your computer and use it in GitHub Desktop.
How to access arguments in Zsh

Access arguments in Zsh

$ ls jeden dva tri

Shortcut

echo Esc. => echo tri

Second argument

$ grep bar !:2

=> grep bar dva

Last argument

$ grep bar !$

=> grep bar tri

All arguments

$ grep bar !*

=> grep bar jeden dva tri

source: http://unix.stackexchange.com/a/194408

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment