Created
February 24, 2023 08:15
-
-
Save kek-Sec/b53ac3a953b4c02c565272a9b1702849 to your computer and use it in GitHub Desktop.
Powershell Profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#invoke oh-my-posh | |
oh-my-posh init pwsh --config 'https://gist.githubusercontent.com/kek-Sec/6c5ca377cec9d904a02b59a962a9b351/raw/0006478fc0901b80d8328d291325c0bcbf4774a7/clean-detailed-custom.omp.json' | Invoke-Expression | |
# Terminal-Icons | |
Import-Module -Name Terminal-Icons | |
# tab completion | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete | |
# PowerShell parameter completion shim for the dotnet CLI | |
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock { | |
param($commandName, $wordToComplete, $cursorPosition) | |
dotnet complete --position $cursorPosition "$wordToComplete" | ForEach-Object { | |
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment