Is there any shortcut to reference the path of the first argument in a MV command?
I often find myself using mv to rename a file. E.g. mv app/models/keywords_builder.rb app/models/keywords_generator.rb Doing so I need to write (ok, tab complete) the path for the second parameter. In this example it isn't too bad but sometimes the path is deeply nested and it seems like quite a bit of extra typing. Is there a more efficient way to do this? You can use history expansion like this: mv app/modules/keywords_builder.rb !#^:h/keywords_generator.rb ! introduces history expansion. # refers to the command currently being typed ^ means the first argument :h is a modifier to get the