1 Star 0 Fork 0

fanzuquan/oh-my-posh

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
environment_unix.go 201 Bytes
Copy Edit Raw Blame History
Jan De Dobbeleer authored 2020-10-12 22:01 +08:00 . fix: remove user.current()
// +build !windows
package main
import (
"os"
)
func (env *environment) isRunningAsRoot() bool {
return os.Geteuid() == 0
}
func (env *environment) homeDir() string {
return os.Getenv("HOME")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/fanzuquan/oh-my-posh.git
git@gitee.com:fanzuquan/oh-my-posh.git
fanzuquan
oh-my-posh
oh-my-posh
v3.15.0

Search