I'm trying to set an environment variable for Anki's media folder, in
The line is
export ANKI_MEDIA='/Users/<username>/Library/Application Support/Anki2/me/collection.media'.
Once sourced, I try
echo $ANKI_MEDIA which correctly returns the full path but if I do
cd $ANKI_MEDIA I get back
-bash: cd: "/Users/<username>/Library/Application\: No such file or directory
I've tried different combos of single and double quotes -- to no avail. Please advice, thank you in advance.
I've tried writing the pathfile in .bash_profile within backticks. After sourcing it, I immediate get back
-bash: /Users/<username>/Library/Application Support/Anki2/me/collection.media: is a directory
For future reference, I created a link in the home directory of the User and pointed it to the
collection.media folder. This just a workaround, I would greatly appreciate it if someone helped me solve this puzzle.