Skip to content

Commit 702e251

Browse files
committed
feat: new oh-my-posh setup
1 parent 1ae10ea commit 702e251

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Profile/prompt.ps1

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Prompt
2-
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\wopian.omp.json" | Invoke-Expression
3-
# Set-PoshPrompt -Theme wopian -ErrorAction SilentlyContinue
2+
If (Get-Command oh-my-posh -ErrorAction SilentlyContinue) {
3+
oh-my-posh init pwsh --config $ENV:POSH_THEMES_PATH\wopian.omp.json | Invoke-Expression
4+
}
45

56
# Write Current Version and Execution Policy Details:
67
Write-Host "PowerShell Version: $($psversiontable.psversion) - ExecutionPolicy: $(Get-ExecutionPolicy)" -ForegroundColor yellow

0 commit comments

Comments
 (0)