Bugfix: bash_completion configuration line is not append if the PROFILE variable is set to /etc/bashrc (which is a valid bashrc file).

This commit is contained in:
Tristan Cladet 2021-08-27 17:43:51 +02:00
parent e0df5e92e3
commit b3a386b000

View File

@ -34,7 +34,7 @@ nvm_profile_is_bash_or_zsh() {
local TEST_PROFILE
TEST_PROFILE="${1-}"
case "${TEST_PROFILE-}" in
*"/.bashrc" | *"/.bash_profile" | *"/.zshrc")
*"/.bashrc" | *"/.bash_profile" | *"/.zshrc" | "/etc/bashrc")
return
;;
*)