machine.v
1//! Machine-local facts: the name recorded on saves, and where Koh keeps the2//! settings that belong to this machine rather than to a repo.34module machine56import os78pub fn name() string {9 return os.hostname() or { 'unknown' }10}1112pub fn config_dir() string {13 return os.join_path(os.home_dir(), '.config', 'koh')14}1516pub fn config_path(name string) string {17 return os.join_path(config_dir(), name)18}