paths: simulate variable expansion so $HOME works (#1093)

Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
This commit is contained in:
Evertiro 2026-01-17 07:24:41 -06:00 committed by GitHub
parent 96942d5ff3
commit 50e541efde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ Singleton {
}
function absolutePath(path: string): string {
return toLocalFile(path.replace("~", home));
return toLocalFile(path.replace(/~|(\$({?)HOME(}?))+/, home));
}
function shortenHome(path: string): string {