fix(pwsh): use correct directory when exporting theme

resolves #748
This commit is contained in:
Jan De Dobbeleer 2021-05-29 18:44:45 +02:00 committed by Jan De Dobbeleer
parent a686169a3c
commit 8ef355db4c

View file

@ -153,7 +153,7 @@ function global:Export-PoshTheme {
if ($FilePath.StartsWith('~')) {
$FilePath = $FilePath.Replace('~', $HOME)
}
$FilePath = [IO.Path]::GetFullPath($FilePath)
$FilePath = [IO.Path]::GetFullPath($FilePath, (Get-Location -PSProvider FileSystem).ProviderPath)
[IO.File]::WriteAllLines($FilePath, $configString)
}
else {