Implement fix for #238 by sourcing .profile from .bash_profile to prevent breaking users that rely on .profile from bash (#240)

* Implement fix for #238 by sourcing .profile from .bash_profile to prevent breaking users that rely on .profile from bash

* Add tests for fix for #238
This commit is contained in:
David Dworken
2024-08-30 08:40:07 -07:00
committed by GitHub
parent 4a9af23f30
commit 76fa568d95
3 changed files with 67 additions and 0 deletions

View File

@ -99,6 +99,7 @@ func BackupAndRestoreWithId(t testing.TB, id string) func() {
path.Join(homedir, ".zshrc"),
path.Join(homedir, ".bashrc"),
path.Join(homedir, ".bash_profile"),
path.Join(homedir, ".profile"),
}
for _, file := range copyFiles {
touchFile(file)