Skip to content
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 should write to ~/.bashrc, not ~/.bash_profile #12787

Open
2 tasks done
BEFH opened this issue Jun 9, 2023 · 2 comments
Open
2 tasks done

conda init should write to ~/.bashrc, not ~/.bash_profile #12787

BEFH opened this issue Jun 9, 2023 · 2 comments
Labels
cli::posix pertains to the CLI in Posix compliant shells (e.g. Bash, Zsh, KornShell, etc.) pending::discussion contains some ongoing discussion that needs to be resolved prior to proceeding source::community catch-all for issues filed by community members type::feature request for a new feature or capability

Comments

@BEFH
Copy link

BEFH commented Jun 9, 2023

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

conda init bash writes to ~/.bash_profile, which is only sourced for interactive sessions, as opposed to ~/.bashrc which is sourced for all sessions. I believe this change was made after #8072, which incorrectly states the opposite.

Is there any way that could be changed back, or an option could be added to override the default?

More info is here: https://linuxize.com/post/bashrc-vs-bash-profile/

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

No response

@BEFH BEFH added the type::bug describes erroneous operation, use severity::* to classify the type label Jun 9, 2023
@travishathaway travishathaway added type::feature request for a new feature or capability source::community catch-all for issues filed by community members and removed type::bug describes erroneous operation, use severity::* to classify the type labels Jun 12, 2023
@jezdez jezdez added the cli::posix pertains to the CLI in Posix compliant shells (e.g. Bash, Zsh, KornShell, etc.) label Jun 13, 2023
@travishathaway
Copy link
Contributor

Hi @BEFH,

Thanks for filing this feature request. You bring up a valid point. I want to leave this feature request open so that we can discuss the advantages and disadvantages of making such a change. I'm sorry, but I cannot provide a yes or no answer at this point.

@travishathaway travishathaway added the pending::discussion contains some ongoing discussion that needs to be resolved prior to proceeding label Jun 14, 2023
@BEFH
Copy link
Author

BEFH commented Jul 6, 2023

what would be the purpose of only making anaconda available to interactive sessions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli::posix pertains to the CLI in Posix compliant shells (e.g. Bash, Zsh, KornShell, etc.) pending::discussion contains some ongoing discussion that needs to be resolved prior to proceeding source::community catch-all for issues filed by community members type::feature request for a new feature or capability
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants