add .bash_profile as a bash rc file
This is common on macs.
This commit is contained in:
parent
e3c14b831e
commit
b74be9ff54
|
@ -59,8 +59,11 @@ func Uninstall(cmd string) error {
|
|||
}
|
||||
|
||||
func installers() (i []installer) {
|
||||
if f := rcFile(".bashrc"); f != "" {
|
||||
i = append(i, bash{f})
|
||||
for _, rc := range [...]string{".bashrc", ".bash_profile"} {
|
||||
if f := rcFile(rc); f != "" {
|
||||
i = append(i, bash{f})
|
||||
break
|
||||
}
|
||||
}
|
||||
if f := rcFile(".zshrc"); f != "" {
|
||||
i = append(i, zsh{f})
|
||||
|
|
Loading…
Reference in New Issue