//View Tip #118
Similar Tips
» vimdiff and svn
» SVN resolve all conflicts
» Version all unversioned files in an SVN checkout
» Moved Trac and Subversion repositories to another machine/direct


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
In bash (or anything using libreadline, such as mysql) press ALT+. to insert the last used parameter from the previous line.


$ vim some/file.c
$ svn commit

View Comments »


Add your comment

Comments are currently disabled
!$ does the same but in seems faster to me.
Posted 2008-10-24 20:28:29
David Lesaffre
Does not work in my bash :)
But ESC followed by . does.
Posted 2008-10-28 07:32:08
alt-. doesn't work on the mac.
Posted 2009-02-22 17:49:19
if it doesn't work for you, you'll need to add the appropriate definitions to your inputrc
Posted 2009-03-28 08:46:13
ALT+. lets you edit the parameter, in contrast to !$

Unfortunately ALT+. does not work in vi-mode.
Posted 2009-06-11 12:39:52

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit