mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-18 18:58:54 +02:00
Configure the bash_profile for linux too
This commit is contained in:
@@ -888,10 +888,6 @@ func isBashRcConfigured(homedir string) (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func isBashProfileConfigured(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"))
|
_, err := os.Stat(path.Join(homedir, ".bash_profile"))
|
||||||
if errors.Is(err, os.ErrNotExist) {
|
if errors.Is(err, os.ErrNotExist) {
|
||||||
return false, nil
|
return false, nil
|
||||||
|
Reference in New Issue
Block a user