-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conda init --system alters bash prompt to only display "(base) -bash-5.1#" #13864
Comments
I found a workaround for now: edit the
|
There's a setting you can use for this: More information here: https://docs.conda.io/projects/conda/en/stable/configuration.html |
Thanks @travishathaway, but as I noted in the Additional Context section, changeps1 does fix the prompt but I lose the environment prefix. I'm still using the fix I posted above, which initializes the PS1 variable before the "# >>> conda initialize >>>" section. |
Hi there, thank you for your contribution! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment. Thanks! |
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: