Skip to content

Commit

Permalink
Move jupyter config to XDG_CONFIG_HOME
Browse files Browse the repository at this point in the history
Addresses #17
 - Adds `JUPYTER_CONFIG_DIR` pointing to `XDG_CONFIG_HOME` to `.zshenv`
 - Documents situation around IPython
 - NOte: out-of-the-box XDG support is still an open issue - see:
   jupyter/jupyter_core#185

After reloading the shell (i.e. once `JUPYTER_CONFIG_DIR` is in scope),
one can simply move/rename `~/.jupyter` to `JUPYTER_CONFIG_DIR`.
  • Loading branch information
matyama committed Apr 10, 2022
1 parent e767621 commit 555be39
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .zshenv
Expand Up @@ -114,6 +114,16 @@ alias wget="wget --hsts-file=${XDG_CACHE_HOME}/wget-hsts"
# we actually want to prevent all executions from creating `~/.m2`
alias mvn="mvn -gs ${XDG_CONFIG_HOME}/maven/settings.xml"

# IPython
# - Should support XDG directories since version 8.x. Despite the fact that
# `$HOME` is still the default, `XDG_CONFIG_HOME` should be picked up.
# - https://github.com/matyama/configs/issues/17#issuecomment-1094140403
#
# Jupyter
# - Note: Out-of-the-box XDG support is still an open issue, monitor.
# - https://github.com/jupyter/jupyter_core/issues/185
export JUPYTER_CONFIG_DIR=${XDG_CONFIG_HOME}/jupyter

# Kaggle
export KAGGLE_CONFIG_DIR=${XDG_CONFIG_HOME}/kaggle

Expand Down

0 comments on commit 555be39

Please sign in to comment.