Add Powershell Profile

This commit is contained in:
Mercury. 2024-10-06 22:42:18 +02:00
commit 2229a97a38

14
Powershell Profile Normal file
View file

@ -0,0 +1,14 @@
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/drac.omp.json" | Invoke-Expression
function csbuild {
param (
[string]$cfg = "Debug"
)
$csproj = Get-ChildItem -Recurse -Filter *.csproj
if ($csproj) {
dotnet build $csproj.FullName --configuration $cfg
} else {
Write-Host "No .csproj file found in the current directory or subfolders."
}
}