I was just typing something along the lines of:
mv foo/bar/poit/zoid/narf.txt
Suddenly I realized, damn, I have to type large parts of that parameter again:
mv foo/bar/poit/zoid/narf.txt foo/bar/poit/zoid/troz.txt
Even with tab completion, that's quite a pain. I know I can copy-paste the parameter by mouse-selecting the text and middleclicking but that is not good enough. I want to keep my hands on the keyboard.
Is there a way to copy-paste the current parameter of the line using the keyboard?
mv foo/bar/poit/zoid/{narf.txt,troz.txt}
instead ot typing/copypasting long address twice. – rush Jun 06 '12 at 10:05mv foo/bar/poit/zoid/{narf,troz}.txt
. This works especially well if we have something like.../zoid/this_source_file_has_to_be_patched.c{,.orig}
– Ansgar Esztermann Jun 06 '12 at 10:14