From a0ae2aae839ed8bf66cd24965251e36ca88e266e Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Thu, 15 Feb 2024 01:18:16 +0400 Subject: .profile: additional check in macos for python and set RYE_HOME --- .profile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.profile') diff --git a/.profile b/.profile index 4c1619e..043eb04 100644 --- a/.profile +++ b/.profile @@ -84,11 +84,12 @@ export GHCUP_USE_XDG_DIRS=true # Python # On Linux python executables installed with pip should be in ~/.local/bin -if [ "$(uname)" = "Darwin" ]; then +if [ "$(uname)" = "Darwin" ] && [ -f $HOME/Library/Python ]; then _pypaths="$(du $HOME/Library/Python/*/bin | cut -f2 | paste -s -d ':' -)" export PATH="$PATH:$_pypaths" unset _pypaths fi +export RYE_HOME="$XDG_DATA_HOME/rye" if [ "$(uname)" = "Darwin" ]; then export PATH="$PATH:/opt/homebrew/bin" -- cgit v1.2.3