From d9e39160ded1046ec8b4a8a2a5e0424c69db21c1 Mon Sep 17 00:00:00 2001 From: amirrezaask Date: Fri, 7 Feb 2025 02:41:01 +0330 Subject: [PATCH] posh git --- shell/pwsh/pwsh.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell/pwsh/pwsh.ps1 b/shell/pwsh/pwsh.ps1 index 1348a093..d29ff1df 100644 --- a/shell/pwsh/pwsh.ps1 +++ b/shell/pwsh/pwsh.ps1 @@ -18,3 +18,9 @@ if (Get-Command oh-my-posh -ErrorAction SilentlyContinue) { # oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/amro.omp.json" | Invoke-Expression oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/craver.omp.json" | Invoke-Expression } + +if (Get-Module posh-git) { + Import-Module posh-git +} else { + Write-Host "Install posh-git module for git" +}