summaryrefslogtreecommitdiff
path: root/direnv
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2018-07-03 18:00:32 -0500
committerBlaise Thompson <blaise@untzag.com>2018-07-03 18:00:32 -0500
commitf94b9b632630175c589fdd73b8648bd00af64a1e (patch)
tree3f6efa14b765489c4d938377ed94a706c958bdde /direnv
parentf972585b1ce8c6f29320f157cdd711277b3f5c33 (diff)
2018-07-03 18:00
Diffstat (limited to 'direnv')
-rw-r--r--direnv/direnvrc18
1 files changed, 18 insertions, 0 deletions
diff --git a/direnv/direnvrc b/direnv/direnvrc
new file mode 100644
index 0000000..f3dad9e
--- /dev/null
+++ b/direnv/direnvrc
@@ -0,0 +1,18 @@
+load_conda() {
+ source "$1/etc/profile.d/conda.sh"
+}
+
+## The list of available conda installs
+
+load_database_conda() {
+ load_conda /home/blaise/miniconda3
+}
+
+## The list of environments
+
+activate_conda() {
+ load_database_conda
+ conda activate $1
+ echo "entering into conda environment" $1
+ conda env list
+}