changeset 130:9d522c13ec68

Merge accidental heads
author IBBoard <dev@ibboard.co.uk>
date Tue, 29 Oct 2019 16:49:15 +0000
parents 0354415a8e48 (current diff) 724d0e149569 (diff)
children 5f6e4aa53501
files
diffstat 1 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bashrc	Tue Oct 29 16:48:40 2019 +0000
+++ b/bashrc	Tue Oct 29 16:49:15 2019 +0000
@@ -74,4 +74,18 @@
 # Set a hidden R package directory
 export R_LIBS_USER=~/.R/
 # And stop it asking us to save the workspace
-alias R='R --no-save'
\ No newline at end of file
+alias R='R --no-save'
+
+conda_activate() {
+    __conda_setup="$(~/.anaconda3/bin/conda 'shell.bash' 'hook' 2> /dev/null)"
+    if [ $? -eq 0 ]; then
+        eval "$__conda_setup"
+    else
+        if [ -f ~"/.anaconda3/etc/profile.d/conda.sh" ]; then
+            . ~"/.anaconda3/etc/profile.d/conda.sh"
+        else
+            export PATH=~"/.anaconda3/bin:$PATH"
+        fi
+    fi
+    unset __conda_setup
+}
\ No newline at end of file