Skip to content

Instantly share code, notes, and snippets.

@bradygaster
Last active May 19, 2025 04:27
Show Gist options
  • Save bradygaster/64de8cdaf7ee286f55945dc82a0bc1f2 to your computer and use it in GitHub Desktop.
Save bradygaster/64de8cdaf7ee286f55945dc82a0bc1f2 to your computer and use it in GitHub Desktop.
bradyg's powershell profile
set-alias k kubectl
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/bradyg.2024.json" | Invoke-Expression
Import-Module -Name Terminal-Icons
cd c:\src
cls
# Import-Module PSReadLine
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -EditMode Windows
function update-dotnet-scaffold {
dotnet tool uninstall microsoft.dotnet-scaffold-aspire --global
dotnet tool uninstall microsoft.dotnet-scaffold-aspnet --global
dotnet tool uninstall microsoft.dotnet-scaffold --global
dotnet tool install microsoft.dotnet-scaffold --global --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json --prerelease --interactive
dotnet tool install microsoft.dotnet-scaffold-aspire --global --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json --prerelease --interactive
dotnet tool install microsoft.dotnet-scaffold-aspnet --global --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json --prerelease --interactive
}
function update-azd {
powershell -ex AllSigned -c "Invoke-RestMethod 'https://aka.ms/install-azd.ps1' -OutFile 'install-azd.ps1'; ./install-azd.ps1 -Version 'daily'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment