Sample Header Ad - 728x90

how to modify the anaconda environment prompt in zsh?

7 votes
3 answers
9141 views
To make my command line prompt look prettier on zsh, I added this line to .zshrc: PROMPT='%F{green}%n%f %B%F{blue}%1~%f%b $ ' However, when I activate an anaconda virtual environment (i.e. conda activate base), I see the name of the virtual environment on the left like this: (base) myusername ~ $ I wonder how I can modify the virtual environment part of the prompt (say we want to color it to cyan for example)
Asked by Firat Cem Gurbey (71 rep)
Jun 27, 2021, 04:36 PM
Last activity: Dec 19, 2023, 11:58 AM