conda init --system alters bash prompt to only display "(base) -bash-5.1#" #13864
Labels
source::community
catch-all for issues filed by community members
type::support
neither a bug nor feature, is really just a user having questions or difficulty somewhere
Checklist
What happened?
I am attempting to install miniconda system wide, for all users. According to the documentation, there is an argument
--system
that you can pass into theconda init
command to initialize conda for all users.This runs and works successfully, although it seemingly alters the PS1 prompt:
Before:
[root@server1 ~]#
After:
(base) -bash-5.1#
I'd like to preserve the [user@hostname folder] even after conda is initialized. This was all only tested in bash.
Conda Info
Conda Config
Conda list
Additional Context
I found that by adding
changeps1: False
to the .condarc file I'm able to restore the prompt to the system default, although I then lose the environment prefix (ex(base)
).Overall, I'm aiming to get the prompt to look like this:
(base) [root@server1 ~]#
The text was updated successfully, but these errors were encountered: