3 ms·
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
by seanp2k2 12y ago
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-Index.html https://www.gnu.org/software/bash/manual/html_node/Variable-...
See also: http://wiki.bash-hackers.org/syntax/shellvars http://wiki.bash-hackers.org/syntax/shellvars