Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove anaconda environment prefix from ubuntu terminal command prompt

I installed ancaconda and installed two versions of pythons as

conda create -n python2 python=2.7 anaconda
conda create -n python3 python=3.6 anaconda

Now when I do source activate python3, the environment python3 is prefixed in my terminal. Before my terminal was : source activate python3, Now anaconda prefix environment 'python3' is added (python3) shyamkkhadka@algo22:~$.How can I remove the prefix (python3) from my terminal prompt, in ubuntu ?

like image 785
Shyamkkhadka Avatar asked Mar 08 '17 14:03

Shyamkkhadka


1 Answers

Well, I found the answer myself. Anaconda has nice feature for this also:

conda config --set changeps1 false

It hides the prefix in your command prompt.

like image 172
Shyamkkhadka Avatar answered Oct 31 '22 17:10

Shyamkkhadka