Skip to content

Instantly share code, notes, and snippets.

@nexxeln
Created March 15, 2022 09:53
Show Gist options
  • Save nexxeln/8c2d6b979bb7a433494753ca7d616b1c to your computer and use it in GitHub Desktop.
Save nexxeln/8c2d6b979bb7a433494753ca7d616b1c to your computer and use it in GitHub Desktop.
my powershell profile
# Install-Module PSReadLine
Clear-Host []
Invoke-Expression (&starship init powershell)
Write-Host "Welcome Back Shoubhit!"
Import-Module PSReadLine
# Shows navigable menu of all options when hitting Tab
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
# Autocompleteion for Arrow keys
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PSReadLineOption -ShowToolTips
Set-PSReadLineOption -PredictionSource History
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment