From cfd15051ada0840e8bba625f7daa851e2b6f9ccb Mon Sep 17 00:00:00 2001 From: Alex Kup <116945542+Lifailon@users.noreply.github.com> Date: Tue, 20 Feb 2024 22:02:01 +0300 Subject: [PATCH] add example pester --- posh.txt | 80 +++++++++++++++++++++++++++++--------------------------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/posh.txt b/posh.txt index 412284d..8ffae8a 100644 --- a/posh.txt +++ b/posh.txt @@ -8,7 +8,6 @@ GitHub Repo stars: https://img.shields.io/github/stars/Lifailon/PS-Commands Статья на Habr: PowerShell и его возможности (https://habr.com/ru/articles/782592/) # Help -# oh-my-posh # Object # npp # Regex @@ -103,6 +102,7 @@ GitHub Repo stars: https://img.shields.io/github/stars/Lifailon/PS-Commands # VideoCDN # Telegram # Discord +# oh-my-posh # Pester # Help @@ -129,44 +129,6 @@ Get-ExecutionPolicy $Metadata = New-Object System.Management.Automation.CommandMetaData (Get-Command Get-Service) # получить информацию о командлете [System.Management.Automation.ProxyCommand]::Create($Metadata) # исходный код функции -# oh-my-posh - -[Install](https://ohmyposh.dev/docs/installation/windows) -winget install JanDeDobbeleer.OhMyPosh -s winget -choco install oh-my-posh -y -scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json -Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1')) - -[Themes](https://ohmyposh.dev/docs/themes) -Get-PoshThemes -oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/di4am0nd.omp.json" | Invoke-Expression -oh-my-posh init pwsh --config "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/cert.omp.json" | Invoke-Expression - -New-Item -Path $PROFILE -Type File -Force -notepad $PROFILE -oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/di4am0nd.omp.json" | Invoke-Expression - -### themes-performance - -Install-Module themes-performance -Repository NuGet -Import-Module themes-performance -Set-PoshTheme -Theme System-Sensors # -Save -Set-PoshTheme -Theme System-Performance # -Save -Set-PoshTheme -Theme Pwsh-Process-Performance # -Save - -### Terminal-Icons - -Install-Module -Name Terminal-Icons -Repository PSGallery -scoop bucket add extras -scoop install terminal-icons - -notepad $PROFILE -Import-Module -Name Terminal-Icons - -Использует шрифты, которые необходимо установить и настроить в параметрах профиля PowerShell: [Nerd Fonts](https://github.com/ryanoasis/nerd-fonts) -Список шрифтов: https://www.nerdfonts.com/font-downloads -Скачать и установить шрифт похожий на Cascadia Code - [CaskaydiaCove](https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/CascadiaCode.zip) - # Object ### Variable @@ -7182,6 +7144,46 @@ $Client.ConnectionState $Client.LogoutAsync().GetAwaiter().GetResult() $Client.Dispose() +# oh-my-posh + +Install: https://ohmyposh.dev/docs/installation/windows + +winget install JanDeDobbeleer.OhMyPosh -s winget +choco install oh-my-posh -y +scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json +Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1')) + +Themes: https://ohmyposh.dev/docs/themes + +Get-PoshThemes +oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/di4am0nd.omp.json" | Invoke-Expression +oh-my-posh init pwsh --config "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/cert.omp.json" | Invoke-Expression + +New-Item -Path $PROFILE -Type File -Force +notepad $PROFILE +oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/di4am0nd.omp.json" | Invoke-Expression + +### themes-performance + +Install-Module themes-performance -Repository NuGet +Import-Module themes-performance +Set-PoshTheme -Theme System-Sensors # -Save +Set-PoshTheme -Theme System-Performance # -Save +Set-PoshTheme -Theme Pwsh-Process-Performance # -Save + +### Terminal-Icons + +Install-Module -Name Terminal-Icons -Repository PSGallery +scoop bucket add extras +scoop install terminal-icons + +notepad $PROFILE +Import-Module -Name Terminal-Icons + +Использует шрифты, которые необходимо установить и настроить в параметрах профиля PowerShell: [Nerd Fonts](https://github.com/ryanoasis/nerd-fonts) +Список шрифтов: https://www.nerdfonts.com/font-downloads +Скачать и установить шрифт похожий на Cascadia Code - [CaskaydiaCove](https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/CascadiaCode.zip) + # Pester Source: https://github.com/pester/Pester