mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-22 21:41:01 +01:00
Configure the bash_profile for linux too
This commit is contained in:
parent
d4ca466314
commit
df58d56829
@ -888,10 +888,6 @@ func isBashRcConfigured(homedir string) (bool, error) {
|
||||
}
|
||||
|
||||
func isBashProfileConfigured(homedir string) (bool, error) {
|
||||
if runtime.GOOS != "darwin" {
|
||||
// We only need to configure the bash_profile for macos. See https://github.com/ddworken/hishtory/issues/14
|
||||
return true, nil
|
||||
}
|
||||
_, err := os.Stat(path.Join(homedir, ".bash_profile"))
|
||||
if errors.Is(err, os.ErrNotExist) {
|
||||
return false, nil
|
||||
|
Loading…
Reference in New Issue
Block a user