paths: simulate variable expansion so $HOME works (#1093)
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
This commit is contained in:
parent
96942d5ff3
commit
50e541efde
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue