Here's something I find myself doing often:
less super/long/file/name
Followed by:
vim super/long/file/name
Is there an easy way to pass the args of the previous command over to the next? SO I'd like to do something like
vim !!!
And have it automatically open super/long/file/name
in vim
.
Using !$
should work to access the last argument of the previous command in the bash shell:
less super/long/file/name
vim !$
Also Meta + . or Esc + . can be used to paste the last argument if the readline library is enabled in emacs mode (default option).
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments