|
@@ -159,6 +159,16 @@ if [[ ! "$(launchctl getenv $lctl_env_label)" == "TRUE" ]]; then
|
|
|
launchctl setenv $lctl_env_label TRUE
|
|
launchctl setenv $lctl_env_label TRUE
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
+################################################################################
|
|
|
|
|
+# Activate Python virtual environments
|
|
|
|
|
+################################################################################
|
|
|
|
|
+
|
|
|
|
|
+if [[ -n $VIRTUAL_ENV && \
|
|
|
|
|
+ $VIRTUAL_ENV = "$HOME"* && \
|
|
|
|
|
+ -e "${VIRTUAL_ENV}/bin/activate" ]]; then
|
|
|
|
|
+ source "${VIRTUAL_ENV}/bin/activate"
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
################################################################################
|
|
################################################################################
|
|
|
# Private or system-specific environment variables
|
|
# Private or system-specific environment variables
|
|
|
################################################################################
|
|
################################################################################
|