Convert a tilde path to an absolute path: ~/dev
→ /Users/sindresorhus/dev
Convert a tilde path to an absolute path: ~/dev
→ /Users/john/dev
Expand the ~
shortcut at the start of a path into the current user's $HOME directory
Untildify a path for the current user even if it is root
Replace the cwd in an absolute path with the Bash equivalent: ~+
. Like untildify, but for cwd instead of userhome.