Skip to main content
try to improve language
Source Link
Matthias Braun
  • 8.8k
  • 8
  • 51
  • 63

How to repeat currently typed in parameter on bashBash console?

I was just typing something along the lines of:

mv foo/bar/poit/zoid/narf.txt

and suddenlySuddenly 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 tabcompletiontab completion, that's quite a pain. I know I can copy paste-paste the parameter by mouse-selecting the text and middleclickmiddleclicking but that is not good enough. I want to remainkeep my hands on the keyboard.

So isIs there a way to copy paste-paste the current parameter of the line using the keyboard?

How to repeat currently typed in parameter on bash console?

I was just typing something along the lines of:

mv foo/bar/poit/zoid/narf.txt

and suddenly 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 tabcompletion, quite a pain. I know I can copy paste the parameter by mouse-selecting the text and middleclick but that is not good enough. I want to remain on the keyboard.

So is there a way to copy paste the current parameter of the line using the keyboard?

How to repeat currently typed in parameter on Bash console?

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?

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
Tweeted twitter.com/#!/StackUnix/status/210318798132219904
Source Link
k0pernikus
  • 16.7k
  • 22
  • 63
  • 82

How to repeat currently typed in parameter on bash console?

I was just typing something along the lines of:

mv foo/bar/poit/zoid/narf.txt

and suddenly 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 tabcompletion, quite a pain. I know I can copy paste the parameter by mouse-selecting the text and middleclick but that is not good enough. I want to remain on the keyboard.

So is there a way to copy paste the current parameter of the line using the keyboard?