From b74be9ff548cfaa7330b1a9312612a830282228d Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Tue, 23 May 2017 08:04:13 -0700 Subject: [PATCH] add .bash_profile as a bash rc file This is common on macs. --- cmd/install/install.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/install/install.go b/cmd/install/install.go index f6123d1..fb44b2b 100644 --- a/cmd/install/install.go +++ b/cmd/install/install.go @@ -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})