mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-25 18:11:24 -08:00
parent
d7258b1b5d
commit
24f87f8557
|
@ -44,6 +44,10 @@ func (env *environment) isRunningAsRoot() bool {
|
|||
}
|
||||
|
||||
func (env *environment) homeDir() string {
|
||||
// return the right HOME reference when using MSYS2
|
||||
if env.getShellName() == bash {
|
||||
return os.Getenv("HOME")
|
||||
}
|
||||
home := os.Getenv("HOMEDRIVE") + os.Getenv("HOMEPATH")
|
||||
if home == "" {
|
||||
home = os.Getenv("USERPROFILE")
|
||||
|
|
Loading…
Reference in a new issue