This question already has an answer here:
Often I will work out of the root of a rails directory where I find my self navigating the same path twice every time I would like to move a file:
mv app/views/layouts/application.html.erb app/views/layouts/application.html.haml
The haml is just one of may examples where I need to change the file name without modifying the directory it currently lives in and without changing directory. Is there a way to achieve this?