pub fn home_dir() -> Option<PathBuf>
Expand description
Tries to obtain the home directory from HOME
on all platforms, but falls back to
home::home_dir()
for more complex ways of obtaining a home directory, particularly useful
on Windows.
The reason HOME
is tried first is to allow Windows users to have a custom location for their
linux-style home, as otherwise they would have to accumulate dot files in a directory these are
inconvenient and perceived as clutter.