From 5a7db2f34aa6a6787d98a001b6d28be97f36abf4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Jun 2021 12:56:30 +0200 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- python/Makefile | 16 ++++++++++++++++ python/user-profile | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 python/Makefile create mode 100644 python/user-profile (limited to 'python') diff --git a/python/Makefile b/python/Makefile new file mode 100644 index 0000000..8c2d730 --- /dev/null +++ b/python/Makefile @@ -0,0 +1,16 @@ +.POSIX: + +install: + mkdir -p -- ~/.var/cache + ln -sf .var/cache/python_history ~/ + mkdir -p -- ~/.config/profile.d + test ! -d ~/.config/profile.d/python + ln -sf -- ~/.dotfiles/python/user-profile ~/.config/profile.d/python + +uninstall: + -unlink -- ~/.config/profile.d/python + -rmdir -- ~/.config/profile.d + -unlink -- ~/.var/cache/python_history + -unlink -- ~/.python_history + +.PHONY: install uninstall diff --git a/python/user-profile b/python/user-profile new file mode 100644 index 0000000..8c9f982 --- /dev/null +++ b/python/user-profile @@ -0,0 +1,3 @@ +# -*- shell-script -*- + +export PYTHON_EGG_CACHE="${XDG_CACHE_HOME}/python-eggs" -- cgit v1.2.3-70-g09d2