pub fn expand_tilde(s: &str) -> PathBuf
Expand a leading ~ or ~/ in a user-supplied path to the user’s home directory. Returns the input unchanged if there is no home dir or no tilde to expand.
~
~/