summaryrefslogtreecommitdiff
path: root/cmd/install/install.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <[email protected]>2017-05-23 08:04:13 -0700
committerJosh Bleecher Snyder <[email protected]>2017-05-23 08:04:21 -0700
commitb74be9ff548cfaa7330b1a9312612a830282228d (patch)
treeb511c8d0fd4923b42e7dd5d3cb8c9e0ee08609f9 /cmd/install/install.go
parente3c14b831e61871a0abd67aec472e555e26077aa (diff)
add .bash_profile as a bash rc file
This is common on macs.
Diffstat (limited to 'cmd/install/install.go')
-rw-r--r--cmd/install/install.go7
1 files 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})