From 9e61d4b3a6c16ea7e914956a571849d14c0e0baf Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 6 May 2024 10:17:18 +0200 Subject: Update clawsrc and make python and st exclusive to zenith MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- python@zenith/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 python@zenith/Makefile (limited to 'python@zenith/Makefile') diff --git a/python@zenith/Makefile b/python@zenith/Makefile new file mode 100644 index 0000000..4a20fbe --- /dev/null +++ b/python@zenith/Makefile @@ -0,0 +1,23 @@ +.POSIX: + +install: + mkdir -p -- ~/.var/cache + test ! -d ~/.python_history + ln -sf .var/cache/python_history ~/.python_history + mkdir -p -- ~/.config/profile.d + test ! -d ~/.config/profile.d/python + ln -sf -- ~/.dotfiles/python@zenith/user-profile ~/.config/profile.d/python + if test "$$(python --version 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1)" = 2; then \ + mkdir -p -- ~/.config/bash/aliases.d && \ + test ! -d ~/.config/bash/aliases.d/python && \ + ln -sf -- ~/.dotfiles/python@zenith/bash-aliases ~/.config/bash/aliases.d/python; \ + fi + +uninstall: + +! ../check-installed python + -unlink -- ~/.config/profile.d/python + -rmdir -- ~/.config/profile.d + -unlink -- ~/.var/cache/python_history + -unlink -- ~/.python_history + -unlink -- ~/.config/bash/aliases.d/python + -rmdir -- ~/.config/bash/aliases.d -- cgit v1.2.3-70-g09d2