I am using the terminal quite a lot, but I am frustrated that I repeatedly resort to the mouse in the following situation.
I have two terminal tabs open with the current working directories X and Y, respectively. In the tab where the directory is X, I want to do this (as an example):
cp somefile Y
The path Y could be very long, so my current, and cumbersome, method is to do
- Ctrl+PgUp to change tab,
pwdto show Y,
- use the mouse to select the output from
- Ctrl+PgDown to go back to the first tab,
- use the mouse again to paste Y after
cp somefile, using middle-click.
Surely this procedure must be avoidable, for example by having a shortcut that copies the current working directory without using the mouse. Any suggestions?