//! Machine-local facts: the name recorded on saves, and where Koh keeps the //! settings that belong to this machine rather than to a repo. module machine import os pub fn name() string { return os.hostname() or { 'unknown' } } pub fn config_dir() string { return os.join_path(os.home_dir(), '.config', 'koh') } pub fn config_path(name string) string { return os.join_path(config_dir(), name) }