my current bash ps1 is as follows:
bldred='\e[1;31m' # Red
bldcyn='\e[1;36m' # Cyan
bldwht='\e[1;37m' # White
txtrst='\e[0m' # Text Reset - Useful for avoiding color bleed
export PS1="\n\[$bldred\]\u\[$txtrst\]@\[$bldwht\]\h\[$txtrst\]:\[$bldcyn\]\w\[$txtrst\]$ "
However, running:
source activate <env-name-here>
by default, tells conda
to prepend the env-name
to my PS1
:
(<env-name-here>)
user@short-domain:fullpath$
Is there a way to tell conda
to insert the env-name
within my PS1
instead, specifically, right after the newline?
conda
at all, but couldn't you just pass it the string<env-name-here>\n
and remove the\n
from your PS1? – Meter<env-name-here>
on the same line as the rest of his prompt string, so adding a trailing newline to<env-name-here>
would defeat the point. – Constantinaexport PS1
– Vazquez