aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-07-18 21:42:04 +0800
committerAaron LI <aly@aaronly.me>2018-07-18 21:42:04 +0800
commit50b46e3ee7929f812cf90f8c50e856cac60f1d24 (patch)
tree190cdd38d76d221281e5ef9c5b7b35a38eea626b
parenteee1e8e3334bbdde932ded44e8e185185da695fe (diff)
downloaddotfiles-50b46e3ee7929f812cf90f8c50e856cac60f1d24.tar.bz2
profile: Support miniconda3/anaconda3
-rw-r--r--_profile11
1 files changed, 11 insertions, 0 deletions
diff --git a/_profile b/_profile
index 7e69342..f410b6b 100644
--- a/_profile
+++ b/_profile
@@ -53,6 +53,17 @@ _running() {
if [ -d "${HOME}/.npm-packages/bin" ]; then
_path_prepend "${HOME}/.npm-packages/bin"
fi
+# Miniconda/Anaconda
+if [ -d "${HOME}/miniconda3/bin" ]; then
+ _CONDA_DIR="${HOME}/miniconda3"
+elif [ -d "${HOME}/anaconda3/bin" ]; then
+ _CONDA_DIR="${HOME}/anaconda3"
+fi
+if [ -n "${_CONDA_DIR}" ]; then
+ _path_prepend "${_CONDA_DIR}/bin"
+ . "${_CONDA_DIR}/etc/profile.d/conda.sh"
+ unset _CONDA_DIR
+fi
# Locally installed programs (e.g., Python)
if [ -d "${HOME}/.local/bin" ]; then
_path_prepend "${HOME}/.local/bin"