Skip to content

Commit

Permalink
fix: πŸ› fix path error of windows terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaquero committed Oct 24, 2024
1 parent 0a3de58 commit c2d0bd4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion defaults.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ $Global:OX_ELEMENT.g = "$HOME\.gitconfig"
# terminal
##########################################################

$Global:OX_ELEMENT.wt = "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json"
if ( Test-Path "$env:LOCALAPPDATA\Packages\Microsoft.windowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" ) {
$Global:OX_ELEMENT.wt = "$env:LOCALAPPDATA\Packages\Microsoft.windowsTerminal_8wekyb3d8bbwe\LocalState\settings.json"
}
else { $Global:OX_ELEMENT.wt = "C:\Scoop\apps\windows-terminal\current\settings\settings.json" }

if ( Test-Path $Global:OX_ELEMENT.wt ) {
$Global:OX_OXIDE.bkwt = "$env:OX_BACKUP\terminal\windows-terminal.jsonc"
}
Expand Down

0 comments on commit c2d0bd4

Please sign in to comment.