0

When I was in Ubuntu installing Anaconda and activating a virtual environment modified my prompt to look like that:

(current-env)user@machine:dir

or as you define in .bashrc.

Now that I installed Anaconda in MacOS my prompt remain the same. I tried to configure that from Anaconda doing:

conda config --set changeps1 no

but nothing changed.

How can I modify my .bash_profile to have the current environment in PS1?

Andrea Bergonzo
  • 3,983
  • 4
  • 19
  • 31

2 Answers2

0

I managed to have that changing my shell from bash to zsh.

You can install zsh from here.

Andrea Bergonzo
  • 3,983
  • 4
  • 19
  • 31
0

In recent versions, Conda has provided automated configuration for a number of shells via the conda init command. This command will edit relevant .*rc files to enable such features of PS1 change. Please see conda init --help for details.

merv
  • 67,214
  • 13
  • 180
  • 245