mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 03:25:50 +00:00
16 lines
344 B
Swift
16 lines
344 B
Swift
import Foundation
|
|
|
|
extension UserDefaults {
|
|
static var ghosttySuite: String? {
|
|
#if DEBUG
|
|
ProcessInfo.processInfo.environment["GHOSTTY_USER_DEFAULTS_SUITE"]
|
|
#else
|
|
nil
|
|
#endif
|
|
}
|
|
|
|
static var ghostty: UserDefaults {
|
|
ghosttySuite.flatMap(UserDefaults.init(suiteName:)) ?? .standard
|
|
}
|
|
}
|