1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 20:10:08 +02:00

️ Faster search, faster scrolling

This commit is contained in:
2022-01-26 20:31:37 +01:00
parent a2b25e31ca
commit e4ff0418fd
6 changed files with 45 additions and 16 deletions

View File

@ -17,8 +17,11 @@ public class Paths {
private var baseDir : Paths.HomebrewDir
private var userName : String
init() {
baseDir = Shell.fileExists("\(HomebrewDir.opt.rawValue)/bin/brew") ? .opt : .usr
userName = String(Shell.pipe("whoami").split(separator: "\n")[0])
}
// - MARK: Binaries
@ -42,7 +45,7 @@ public class Paths {
// - MARK: Paths
public static var whoami: String {
return String(Shell.pipe("whoami").split(separator: "\n")[0])
return shared.userName
}
public static var binPath: String {