From 757c8352830613ba5c1be85c0502926da22b6622 Mon Sep 17 00:00:00 2001 From: Vixb Date: Thu, 26 Nov 2020 14:48:05 +0800 Subject: [PATCH] chore: update the theme storage path on windows --- docs/docs/installation.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/installation.mdx b/docs/docs/installation.mdx index 2301643a..a9f5b420 100644 --- a/docs/docs/installation.mdx +++ b/docs/docs/installation.mdx @@ -126,10 +126,10 @@ When using [Scoop][scoop], all themes are downloaded as well. #### Manual ```powershell -mkdir C:\tools\poshthemes -Invoke-Webrequest https://github.com/JanDeDobbeleer/oh-my-posh3/releases/latest/download/themes.zip -OutFile C:\tools\poshthemes\themes.zip -Expand-Archive C:\tools\poshthemes\themes.zip -DestinationPath C:\tools\poshthemes -Force -Remove-Item C:\tools\poshthemes\themes.zip +mkdir ~\.poshthemes +Invoke-Webrequest https://github.com/JanDeDobbeleer/oh-my-posh3/releases/latest/download/themes.zip -OutFile ~\.poshthemes\themes.zip +Expand-Archive ~\.poshthemes\themes.zip -DestinationPath ~\.poshthemes -Force +Remove-Item ~\.poshthemes\themes.zip ``` @@ -205,7 +205,7 @@ Edit `$PROFILE` in your preferred PowerShell version and add the following lines $startInfo = New-Object System.Diagnostics.ProcessStartInfo $startInfo.FileName = "C:\tools\oh-my-posh.exe" $cleanPWD = $PWD.ProviderPath.TrimEnd("\") - $startInfo.Arguments = "-config=""C:\Users\User\.poshthemes\jandedobbeleer.json"" -error=$errorCode -pwd=""$cleanPWD""" + $startInfo.Arguments = "-config=""$env:USERPROFILE\.poshthemes\jandedobbeleer.json"" -error=$errorCode -pwd=""$cleanPWD""" $startInfo.Environment["TERM"] = "xterm-256color" $startInfo.CreateNoWindow = $true $startInfo.StandardOutputEncoding = [System.Text.Encoding]::UTF8