pub fn quote_path(path: &str) -> String
quote for a remote path, leaving a leading ~ or ~/ unquoted so the remote shell expands it to the remote home (OSC 7 and users write it).
quote
~
~/