From 8ef355db4cc90cdc061a4859ea2ef954834cfd13 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sat, 29 May 2021 18:44:45 +0200 Subject: [PATCH] fix(pwsh): use correct directory when exporting theme resolves #748 --- src/init/omp.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init/omp.ps1 b/src/init/omp.ps1 index 997c7820..7c1ce49b 100644 --- a/src/init/omp.ps1 +++ b/src/init/omp.ps1 @@ -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 {