fix: console UTF8 encoding for iwr|iex
This commit is contained in:
+8
-2
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user