Last Updated: February 25, 2016
·
1.288K
· a-b

Reuse last parameter from the last command

In bash and zsh you can use !$ to reuse last parameter from the last command usually it looks like:

favoritetestrunner path/to/file.ext

vim !$ +123

translated to

vim path/to/file.ext +123

for zsh you can use much more crazy things described http://www.rayninfo.co.uk/tips/zshtips.html