fix: console UTF8 encoding for iwr|iex

This commit is contained in:
2026-07-21 12:50:34 +03:00
parent e3f6db5796
commit 5d6256a0e5
+8 -2
View File
@@ -4,12 +4,18 @@
# Запуск с любой машины:
# iwr 'https://sc.gper.ru/tarakan/ps-profile/raw/branch/main/bootstrap.ps1' | iex
# ============================================
# КОДИРОВКА КОНСОЛИ (до любого Write-Host)
# ============================================
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$OutputEncoding = [System.Text.Encoding]::UTF8
# ============================================
# КОНФИГУРАЦИЯ
# ============================================
$PROFILE_REPO = 'https://sc.gper.ru/tarakan/ps-profile.git'
$PROFILE_DIR = Join-Path $HOME 'Documents\PowerShell\gper-profile'
$MODULES = @(
$PROFILE_DIR = Join-Path $HOME 'Documents\PowerShell\gper-profile'
$MODULES = @(
'PSReadLine',
'Terminal-Icons',
'Posh-SSH',