Skip to content

Instantly share code, notes, and snippets.

@Agazoth
Created August 13, 2021 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Agazoth/d706e2f6b0d1397eeff32a62942a674a to your computer and use it in GitHub Desktop.
Save Agazoth/d706e2f6b0d1397eeff32a62942a674a to your computer and use it in GitHub Desktop.
Import-Module posh-git
$GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`nPS'
function Get-Access {Get-AzContext -ListAvailable | Sort-Object account | Out-ConsoleGridView | Set-AzContext}
function Get-Subscription {Get-AzSubscription | Sort-Object Name | Out-ConsoleGridView | Select-AzSubscription}
Import-Module PSReadLine
Set-PSReadLineOption -PredictionSource History
function _ {
param (
[parameter(Mandatory)]
[string[]]$Strings
)
$Strings
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment