When we turn the autocomplete ON, for users which don't have .bash_profile we create one and add source ~/.tnsrc there.
This breaks users without .bash_profile files, as their Terminal has automatically been picking .bashrc and now it's not sourced in .bash_profile, therefore they lose their environment variables which is bad.
So we're left sourcing the .tnsrc file only in .bashrc and .zshrc. In case user has bash_profile, he would have sourced the .bashrc there.
.bash_profile
we create one and addsource ~/.tnsrc
there..bash_profile
files, as their Terminal has automatically been picking.bashrc
and now it's notsourced
in.bash_profile
, therefore they lose their environment variables which is bad..bashrc
and.zshrc
. In case user has bash_profile, he would have sourced the.bashrc
there.