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
|
# 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_REPO = 'https://sc.gper.ru/tarakan/ps-profile.git'
|
||||||
$PROFILE_DIR = Join-Path $HOME 'Documents\PowerShell\gper-profile'
|
$PROFILE_DIR = Join-Path $HOME 'Documents\PowerShell\gper-profile'
|
||||||
$MODULES = @(
|
$MODULES = @(
|
||||||
'PSReadLine',
|
'PSReadLine',
|
||||||
'Terminal-Icons',
|
'Terminal-Icons',
|
||||||
'Posh-SSH',
|
'Posh-SSH',
|
||||||
|
|||||||
Reference in New Issue
Block a user