add .bash_profile as a bash rc file

This is common on macs.
This commit is contained in:
Josh Bleecher Snyder 2017-05-23 08:04:13 -07:00
parent e3c14b831e
commit b74be9ff54
1 changed files with 5 additions and 2 deletions

View File

@ -59,8 +59,11 @@ func Uninstall(cmd string) error {
} }
func installers() (i []installer) { func installers() (i []installer) {
if f := rcFile(".bashrc"); f != "" { for _, rc := range [...]string{".bashrc", ".bash_profile"} {
i = append(i, bash{f}) if f := rcFile(rc); f != "" {
i = append(i, bash{f})
break
}
} }
if f := rcFile(".zshrc"); f != "" { if f := rcFile(".zshrc"); f != "" {
i = append(i, zsh{f}) i = append(i, zsh{f})