cut, copy, paste the ''x'' way in bash
I use multiple terminal sessions and often have to copy/move the files around.
Using cp/mv commands is tedious since i have to type in the whole path to the file while the file in question is right there in the cwd on some terminal window.
So, i wrote these little wrappers to cut copy and paste in the x way.
Basically, you can do xcopy <somefile> in some directory in some terminal window, and then go to some other terminal window maybe and just do xpaste to copy somefile there.
Easy enough i guess.
Tip: Use xpaste --peek to see what operation you`re about to do, just in case!
- Clone the xCutCopyPaste.sh to your home directory (your call)
- Rename to .xCutCopyPaste.sh (your call again)
- Add the following lines to your .bashrc:
if [ -f ~/.xCutCopyPaste.sh ]; then
. ~/.xCutCopyPaste.sh
fi
- Use the xcut, xcopy and xpaste commands