Every once in a while, I find the need to do:
cp /really/long/path/to/file.txt /totally/different/long/path/to/copy.txt
Since I use
autojump, getting to the directories is very fast and easy. However, I'm at a loss when it comes to copying from one directory to the other without having to type out at least one of the full paths.
In a GUI filesystem navigator, this is easy: navigate to the first directory; Copy the original file; navigate to the second directory; and Paste. But with
cp, it seems like I can't do the copy in two steps.
I'm looking to do something like the following:
(use autojump to navigate to the first directory) $ copy file.txt (use autojump to navigate to the second directory) $ paste copy.txt
Instead of the longer-to-type:
(use autojump to navigate to the first directory) $ cp file.txt /totally/different/long/path/to/copy.txt
Is there a tool that provides the functionality I'm looking for? I'm using Zsh on OS X El Capitan.