From 2e83244f02876b15b1b9a93d6efe15947d86388b Mon Sep 17 00:00:00 2001 From: Moe Elsadig Date: Fri, 7 Jul 2017 15:49:27 -0700 Subject: [PATCH] Update configure_via_anaconda.md Instructions on editing the '.bashrc' file to create aliases for activating and deactivating Conda environments for Linux Users. --- doc/configure_via_anaconda.md | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/doc/configure_via_anaconda.md b/doc/configure_via_anaconda.md index 9136a8d..189ca56 100644 --- a/doc/configure_via_anaconda.md +++ b/doc/configure_via_anaconda.md @@ -108,3 +108,45 @@ conda env remove -n RoboND ``` --- + +### A tip for Linux Users! +Instead of always writing: + +```sh +// activation +$ source activate RoboND + +//deactivation +$ source deactivate +``` + +You can navigate to home directory in shell using: + +```sh +$ cd +``` + +Then use an editor to add an `alias` to the `.bashrc` file and shorten the activation line to whatever you want. +For example: + +```sh +$ sudo nano .bashrc + + ~ navigate with arrow keys all the way to bottom of the file and type: + +> # my aliases +> alias robond='source activate RoboND' +> alias killconda='source deactivate' + + ~ use `CTRL + X` followed by 'y' to save and exit. Restart the terminal to use the changes. + +``` +now to activate and deactivate all you need to write are: + +```sh +// Activate +$ robond + +// Deactivate +$ killconda +```