I've created a set of symlinks which I can use in BASH with CDPATH:
'desk' which points to my desktop, and 'docs' which points to my documents. I can cd using these symlinks cd docs without problems, however I'd also like to use these symlinks for file operations (cp, mv).
I've read How to copy symlinks to target as normal folders, but that doesn't seem to work for me. For example doing cp -L test.txt docs simply creates a new folder 'docs' and copies the file there. How can I use these symlinks as shorthand for source and destination?