After installing the exercism cli, I couldn't configure the exercism directory without specifying an absolute path.
In particular, I couldn't configure a path from the home directory using ~, as in the example given in the configuration instructions.
(Using zsh on OS X.)
➜ ~ exercism configure —key=<my_key>
The configuration has been written to /Users/amar/.exercism.json
Your exercism directory can be found at /Users/amar/exercism
➜ ~ exercism configure --dir="~/my_awesome_exercism_submissions"
The configuration has been written to /Users/amar/.exercism.json
Your exercism directory can be found at ~/my_awesome_exercism_submissions
I expected this to set my exercism directory as /Users/amar/my_awesome_exercism_submissions.
Instead it created a subdirectory actually called ~ in my home folder, as the parent of my exercism directory.
➜ ~ cd ./\~/my_awesome_exercism_submissions
➜ my_awesome_exercism_submissions pwd
/Users/amar/~/my_awesome_exercism_submissions
This is what I had in ~/.exercism.json:
{
...
"dir": "~/my_awesome_exercism_submissions",
...
}
Using the absolute path fixed the problem:
➜ ~ exercism configure --dir="/Users/amar/my_awesome_exercism_submissions"
The configuration has been written to /Users/amar/.exercism.json
Your exercism directory can be found at /Users/amar/my_awesome_exercism_submissions
➜ ~ cat .exercism.json
...
"dir": "/Users/amar/my_awesome_exercism_submissions",
...
➜ ~ exercism fetch
Not Submitted: 23 problems
clojure (Bob) /Users/amar/my_awesome_exercism_submissions/clojure/bob
...
Thanks, and sorry for being so verbose.
After installing the exercism cli, I couldn't configure the exercism directory without specifying an absolute path.
In particular, I couldn't configure a path from the home directory using
~, as in the example given in the configuration instructions.(Using zsh on OS X.)
I expected this to set my exercism directory as
/Users/amar/my_awesome_exercism_submissions.Instead it created a subdirectory actually called
~in my home folder, as the parent of my exercism directory.This is what I had in
~/.exercism.json:Using the absolute path fixed the problem:
Thanks, and sorry for being so verbose.