bash-git-prompt icon indicating copy to clipboard operation
bash-git-prompt copied to clipboard

prompt now start with (base), what is it for ?

Open chmike opened this issue 6 years ago • 4 comments

I git pulled latest changes to .bash-git-prompt and now see (base) in front of the prompt when I use the default theme. What does it stand for ? How could I remove it ?

Capture-20190325102956-502x37

I wished I could add the host name and eventually the username (e.g. toto@home) in front of the first line prompt. How could I do that ? Is it related to this "(base)" prefix ?

chmike avatar Mar 25 '19 09:03 chmike

Solved the user and host name question by defining the following in my theme:

PathShort="\u@\h:\w"

chmike avatar Mar 25 '19 10:03 chmike

The base here defines the conda environment you are currently on. Read.

scheleon avatar Mar 26 '19 05:03 scheleon

Thank you very much.

chmike avatar Mar 26 '19 07:03 chmike

@scheleon, in the referenced answer, it is advised to disable the changeps1 configuration variable.

I used the command conda config --set changeps1 False, which creates a .condarc file containing changeps1: false.

Unfortunately, bash-git-prompt still show the (base) prefix. I suspect it is due to the presence of the CONDA_DEFAULT_ENV environment variable which has the value base. There is no CONDA environment variable specifying if the PS1 should be changed or not.

It seam that the only solution is to not activate conda in the bashrc. But as soon as I start CONDA, the (base) prompt will show everywhere. Why not showing it only if it’s different from base ? 

chmike avatar Mar 27 '19 07:03 chmike