Dagfinn Ilmari Mannsåker ilmari at
Wed Feb 23 17:42:31 GMT 2011

David Cantrell <david at> writes:

> $ svn add lib/Hlagh/
> ...
> $ svn commit
> ...
> $ vi !($^*%*$
> What line-noise should I type to get the last argument to the command
> two steps back in my history?  Obviously I only care about bash.

I prefer to do it interactively with alt-., which gives you the last
argument to the previous command in your history each time you press it,
so in this case it would be

$ vi <alt-.> <alt-.>

"A disappointingly low fraction of the human race is,
 at any given time, on fire." - Stig Sandbeck Mathisen

More information about the mailing list