Created
December 27, 2019 14:59
-
-
Save abel0b/5e9814165a19b95035bbaf70686a9f2d to your computer and use it in GitHub Desktop.
Expand ~ in path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function expand_home() { | |
echo "${1/#\~/$HOME}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment