mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
d7258b1b5d
commit
24f87f8557
|
@ -44,6 +44,10 @@ func (env *environment) isRunningAsRoot() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (env *environment) homeDir() string {
|
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")
|
home := os.Getenv("HOMEDRIVE") + os.Getenv("HOMEPATH")
|
||||||
if home == "" {
|
if home == "" {
|
||||||
home = os.Getenv("USERPROFILE")
|
home = os.Getenv("USERPROFILE")
|
||||||
|
|
Loading…
Reference in a new issue