Created
March 14, 2019 15:56
-
-
Save smartXZX/dc604a49ffb19886fc7e65c9341ad5be to your computer and use it in GitHub Desktop.
My powershell profile
This file contains hidden or 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
| # 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