Skip to content

Instantly share code, notes, and snippets.

@monosyde
monosyde / Microsoft.PowerShell_profile.ps1
Last active October 28, 2025 22:55
PowerShell 7 prompt with posh-git, PSReadLine ListView, colored Git branch Single-line ~\path (branch) > prompt: orange path, blue parentheses, red branch; git status via posh-git/git rev-parse; optional Terminal-Icons; VT-safe, fallback to History/None predictions
# ##########################################################
# Быстрый старт: красивый PowerShell 7 prompt с Git-статусом
# и удобным автодополнением (PSReadLine ListView)
#
# 1) Запустите PowerShell 7 (pwsh)
# 2) Разрешите запуск профиля (при необходимости):
# Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
# 3) Установите модули:
# - PSReadLine (обычно уже установлен):
# Install-Module PSReadLine -Scope CurrentUser -Force