mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
parent
6c88285d64
commit
6afa7711b2
|
@ -226,6 +226,9 @@ func (env *environment) getenv(key string) string {
|
|||
|
||||
func (env *environment) getcwd() string {
|
||||
defer env.trace(time.Now(), "getcwd")
|
||||
defer func() {
|
||||
env.log(Error, "getcwd", env.cwd)
|
||||
}()
|
||||
if env.cwd != "" {
|
||||
return env.cwd
|
||||
}
|
||||
|
|
|
@ -55,6 +55,9 @@ func (env *environment) isRunningAsRoot() bool {
|
|||
|
||||
func (env *environment) homeDir() string {
|
||||
home := os.Getenv("HOME")
|
||||
defer func() {
|
||||
env.log(Error, "homeDir", home)
|
||||
}()
|
||||
if len(home) > 0 {
|
||||
return home
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue