summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2024-12-10 20:27:54 +0100
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2024-12-10 20:27:54 +0100
commit205a9f2c104aa54b12db1268e3c58ef7145e45f1 (patch)
tree248518a37e8691d1ca804d59d7a3e3f456a5626b
parentfish: add ocaml XDG compatibility (diff)
fish: add python XDG compatibility
This includes uv, ipython, and jypyter.
-rw-r--r--dot_config/private_fish/conf.d/python.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/dot_config/private_fish/conf.d/python.fish b/dot_config/private_fish/conf.d/python.fish
new file mode 100644
index 0000000..6c4f81d
--- /dev/null
+++ b/dot_config/private_fish/conf.d/python.fish
@@ -0,0 +1,7 @@
+set -Uuq IPYTHONDIR || set -Uu IPYTHONDIR ~/.local/python/ipython
+set -Uuq JUPYTER_CONFIG_DIR || set -Uu JUPYTER_CONFIG_DIR ~/.local/python/jupyter
+set -Uuq UV_PYTHON_BIN_DIR || set -Uu UV_PYTHON_BIN_DIR ~/.local/python/bin
+set -Uuq UV_PYTHON_INSTALL_DIR || set -Uu UV_PYTHON_INSTALL_DIR ~/.local/python/interpreters
+set -Uuq UV_TOOL_BIN_DIR || set -Uu UV_TOOL_BIN_DIR ~/.local/python/bin
+set -Uuq UV_TOOL_DIR || set -Uu UV_TOOL_DIR ~/.local/python/tools
+setux IPYTHONDIR JUPYTER_CONFIG_DIR UV_PYTHON_BIN_DIR UV_PYTHON_INSTALL_DIR UV_TOOL_BIN_DIR UV_TOOL_DIR