Clojure CLI, the bash script, determines the user config directory looking at
the CLJ_CONFIG
env variable. If unset, fallbacks to $HOME/.clojure
, and
creates a default deps.edn
file if you don't have one:
# Determine user config directory
if [[ -n "$CLJ_CONFIG" ]]; then
config_dir="$CLJ_CONFIG"
elif [[ -n "$XDG_CONFIG_HOME" ]]; then
config_dir="$XDG_CONFIG_HOME/clojure"