Function hisho_core::files::get_home_dir
source · pub fn get_home_dir() -> Option<String>
Expand description
Try to resolve the home directory of the current user.
We try to read the environment variable depending on the complication platform:
- For Windows we try to read the
USERPROFILE
environment variable. - For Unix we try to read the
HOME
environment variable.