Mercurial > repos > other > linux
comparison bashrc @ 131:5f6e4aa53501
Let Conda activation use the local directory as a name
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 26 Nov 2019 10:35:23 +0000 |
parents | 724d0e149569 |
children | 920255137b9d |
comparison
equal
deleted
inserted
replaced
130:9d522c13ec68 | 131:5f6e4aa53501 |
---|---|
86 else | 86 else |
87 export PATH=~"/.anaconda3/bin:$PATH" | 87 export PATH=~"/.anaconda3/bin:$PATH" |
88 fi | 88 fi |
89 fi | 89 fi |
90 unset __conda_setup | 90 unset __conda_setup |
91 | |
92 if [ $# -eq 1 ]; then | |
93 if [ "x$1" == "x." ]; then | |
94 _conda_env=$(basename $(readlink -f .)) | |
95 else | |
96 _conda_env=$1 | |
97 fi | |
98 conda activate $_conda_env | |
99 fi | |
100 unset _conda_env | |
91 } | 101 } |