Skip to content

Commit

Permalink
keep __pycache__ folders from popping up everywhere (use XDG_CACHE_HO…
Browse files Browse the repository at this point in the history
…ME instead)
  • Loading branch information
jakebman committed Jan 3, 2025
1 parent d22e390 commit 7242b3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/available/jake-xdg.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ fi
export npm_config_cache="${XDG_CACHE_HOME}/npm"
export JARVIZ_DIR="${XDG_CACHE_HOME}" # a jar analyzer, from sdkman

# .pyc files go here. Read more in `man python`'s entry on `-X pycache_prefix=PATH`
# Happily, it's automatically created, unlike the history file
export PYTHONPYCACHEPREFIX="${XDG_CACHE_HOME}/__pycache__"

## XDG_STATE_HOME
: ${XDG_STATE_HOME:=${HOME}/.local/state}

Expand Down

0 comments on commit 7242b3d

Please sign in to comment.