diff --git a/lib/utils/to-human-path.js b/lib/utils/to-human-path.js index a8533c9..4b03f0a 100644 --- a/lib/utils/to-human-path.js +++ b/lib/utils/to-human-path.js @@ -1,7 +1,8 @@ import { resolve } from 'path'; +import { homedir } from 'os'; // cleaned-up `$HOME` (i.e.: no trailing slash) -const HOME = resolve(process.env.HOME); +const HOME = resolve(homedir()); /** * Attempts to show the given path in