We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ae10ea commit 702e251Copy full SHA for 702e251
Profile/prompt.ps1
@@ -1,6 +1,7 @@
1
# Prompt
2
-oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\wopian.omp.json" | Invoke-Expression
3
-# Set-PoshPrompt -Theme wopian -ErrorAction SilentlyContinue
+If (Get-Command oh-my-posh -ErrorAction SilentlyContinue) {
+ oh-my-posh init pwsh --config $ENV:POSH_THEMES_PATH\wopian.omp.json | Invoke-Expression
4
+}
5
6
# Write Current Version and Execution Policy Details:
7
Write-Host "PowerShell Version: $($psversiontable.psversion) - ExecutionPolicy: $(Get-ExecutionPolicy)" -ForegroundColor yellow
0 commit comments