Skip to content

Why there are platform dependent configuration file selection? #2084

@tbhaxor

Description

@tbhaxor

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions