Skip to content

Instantly share code, notes, and snippets.

@danieldaeschle
Last active May 13, 2021 15:19
Show Gist options
  • Save danieldaeschle/3b62acbe9e2a86baea580940c99244d0 to your computer and use it in GitHub Desktop.
Save danieldaeschle/3b62acbe9e2a86baea580940c99244d0 to your computer and use it in GitHub Desktop.
Powershell profile configuration
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme robbyrussel
# Helper function to change directory to development workspace
function cws { Set-Location $env:USERPROFILE\Projects }
Import-Module PSReadLine
# Shows navigable menu of all options when hitting Tab
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
# Autocompletion 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