Finish porting support for color schemes to SSH kitten

This commit is contained in:
Kovid Goyal
2023-02-28 12:08:55 +05:30
parent c877b2a5cb
commit 3558d1c274
3 changed files with 79 additions and 19 deletions

View File

@@ -274,3 +274,11 @@ func RandomFilename() string {
return base32.StdEncoding.WithPadding(base32.NoPadding).EncodeToString(b)
}
func ResolveConfPath(path string) string {
cs := os.ExpandEnv(Expanduser(path))
if !filepath.IsAbs(cs) {
cs = filepath.Join(ConfigDir(), cs)
}
return cs
}