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

Why there are platform dependent configuration file selection? #2084

Open
tbhaxor opened this issue Feb 8, 2022 · 1 comment · May be fixed by #2039
Open

Why there are platform dependent configuration file selection? #2084

tbhaxor opened this issue Feb 8, 2022 · 1 comment · May be fixed by #2039

Comments

@tbhaxor
Copy link
Contributor

tbhaxor commented Feb 8, 2022

I see, there are platform dependent configurations for the bash-it entry point. For example in Darwin (macOS) it's ~/.bash_profile and for other os it's ~/.bashrc file.

bash-it/install.sh

Lines 189 to 196 in 4dbe92e

case $OSTYPE in
darwin*)
CONFIG_FILE=.bash_profile
;;
*)
CONFIG_FILE=.bashrc
;;
esac

Point is why aren't we using only one file, that is ~/.bashrc?

Based on the information provided here and dynamic module enable / disable feature that should allow bash to read and source the config on every terminal, I advice to use the rc file instead.

@gaelicWizard
Copy link
Contributor

I agree 100% and have open PRs to address this, most directly #2039.

@gaelicWizard gaelicWizard linked a pull request Feb 8, 2022 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants