Is there a way to echo the current directory with ~replacing the home directory?
Example:
~/inboxinstead/home/john/inbox
The home directory does not have to be hard-coded.
There are variables $PWDand $HOME.
The built-in bash tool will be nice.
source
share