Skip to content

Commit

Permalink
fix encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jpawlowski committed Aug 20, 2024
1 parent ffd58e5 commit c39a256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions src/powershell-extended/ENHANCEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,7 @@ To make the setup easier for you, you may copy the following lines into your **l
terminal (that is, a local Windows Terminal window, or a local VSCode window that is not running your Dev Container):

```powershell
$tempFile = New-TemporaryFile
$scriptUrl = 'https://raw.githubusercontent.com/jpawlowski/devcontainer-features/main/src/powershell-extended/Install-NerdFont.ps1'
try {
Invoke-WebRequest -Uri $scriptUrl -OutFile $tempFile.FullName -ErrorAction Stop
Unblock-File -Path $tempFile.FullName
& $tempFile.FullName
} catch {
Write-Error "$_"
} finally {
Remove-Item $tempFile.FullName -Force -ErrorAction Ignore
}
& ([scriptblock]::Create((iwr 'https://bit.ly/ps-install-nerdfont')))
```

This will provide an interactive menu for you to select the desired font.
Expand Down
2 changes: 1 addition & 1 deletion src/powershell-extended/Install-NerdFont.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function Show-Menu {
)

# Print the centered and bold title
$title = "🤓 $($PSStyle.Bold)Nerd Fonts Installation$($PSStyle.BoldOff)"
$title = "`u{1F913} $($PSStyle.Bold)Nerd Fonts Installation$($PSStyle.BoldOff)"
$padding = [math]::Max(0, ($terminalWidth - $title.Length) / 2)
Write-Host (' ' * $padding + $title) -ForegroundColor Cyan -NoNewline
Write-Host -ForegroundColor Cyan
Expand Down

0 comments on commit c39a256

Please sign in to comment.