Shell-fu

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


David Cantrell <david at cantrell.org.uk> writes:

> $ svn add lib/Hlagh/Blagh.pm
> ...
> $ 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-.>

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


More information about the london.pm mailing list