diff options
| author | Josh Bleecher Snyder <[email protected]> | 2017-05-23 08:04:13 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <[email protected]> | 2017-05-23 08:04:21 -0700 |
| commit | b74be9ff548cfaa7330b1a9312612a830282228d (patch) | |
| tree | b511c8d0fd4923b42e7dd5d3cb8c9e0ee08609f9 /cmd/install/install.go | |
| parent | e3c14b831e61871a0abd67aec472e555e26077aa (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.go | 7 |
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}) |
