mirror of
https://github.com/ddworken/hishtory.git
synced 2025-07-15 20:05:37 +02:00
Add additional fallback method for retrieving the CWD to further improve the situation for #226
This commit is contained in:
@ -648,6 +648,10 @@ func getCwdWithoutSubstitution() (string, error) {
|
||||
return cwd, nil
|
||||
}
|
||||
}
|
||||
cwd = os.Getenv("PWD")
|
||||
if cwd != "" && strings.HasPrefix(cwd, "/") {
|
||||
return cwd, nil
|
||||
}
|
||||
return "", err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user