Skip to content

Instantly share code, notes, and snippets.

@smartXZX
Created March 14, 2019 15:56
Show Gist options
  • Select an option

  • Save smartXZX/dc604a49ffb19886fc7e65c9341ad5be to your computer and use it in GitHub Desktop.

Select an option

Save smartXZX/dc604a49ffb19886fc7e65c9341ad5be to your computer and use it in GitHub Desktop.
My powershell profile
# Ensure that Get-ChildItemColor is loaded
Import-Module Get-ChildItemColor
# Set l and ls alias to use the new Get-ChildItemColor cmdlets
Set-Alias l Get-ChildItemColor -Option AllScope
Set-Alias ls Get-ChildItemColorFormatWide -Option AllScope
Import-Module PSReadLine
Set-PSReadLineOption -HistoryNoDuplicates
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
Set-PSReadLineOption -HistorySaveStyle SaveIncrementally
Set-PSReadLineOption -MaximumHistoryCount 4000
# history substring search
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
# Tab completion
Set-PSReadlineKeyHandler -Chord 'Shift+Tab' -Function Complete
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment