Hacker News new | past | comments | ask | show | jobs | submit login

I use $_ all the time, since it's the last argument to the previous command [after expansion]. Example would be:

atom path/to/so[tab]/fi[tab] [return] git diff $_

Complete reference: https://www.gnu.org/software/bash/manual/html_node/Variable-...

See also: http://wiki.bash-hackers.org/syntax/shellvars




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: