diff options
author | Aaron LI <aly@aaronly.me> | 2018-07-18 21:42:04 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-07-18 21:42:04 +0800 |
commit | 50b46e3ee7929f812cf90f8c50e856cac60f1d24 (patch) | |
tree | 190cdd38d76d221281e5ef9c5b7b35a38eea626b /_profile | |
parent | eee1e8e3334bbdde932ded44e8e185185da695fe (diff) | |
download | dotfiles-50b46e3ee7929f812cf90f8c50e856cac60f1d24.tar.bz2 |
profile: Support miniconda3/anaconda3
Diffstat (limited to '_profile')
-rw-r--r-- | _profile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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" |