Add Powershell Profile
This commit is contained in:
commit
2229a97a38
14
Powershell Profile
Normal file
14
Powershell Profile
Normal 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."
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue