Created
May 6, 2026 19:30
-
-
Save jeangatto/c3044ba6c2e85be18df113aa7aa83f84 to your computer and use it in GitHub Desktop.
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
| [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12 | |
| $OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding | |
| # https://github.com/devblackops/Terminal-Icons | |
| Import-Module Terminal-Icons | |
| # https://github.com/dahlbyk/posh-git | |
| Import-Module posh-git | |
| # https://github.com/PowerShell/PSReadLine | |
| Import-Module PSReadLine | |
| Set-PSReadLineOption -BellStyle Visual # None, Audible, Visual | |
| Set-PSReadLineOption -EditMode Windows # Emacs, Vi, Windows | |
| Set-PSReadLineOption -HistoryNoDuplicates # Don't add duplicate entries to the history | |
| Set-PSReadLineOption -HistorySearchCursorMovesToEnd # Move the cursor to the end of the line when searching through history, instead of keeping it where it is. | |
| Set-PSReadLineOption -PredictionSource HistoryAndPlugin # History, Plugin, HistoryAndPlugin | |
| Set-PSReadLineOption -PredictionViewStyle Inline # ListView, Inline, ToolTips | |
| Set-PSReadLineOption -ShowToolTips # Show tooltips when the prediction view style is set to ToolTips | |
| Set-PSReadLineKeyHandler -Key Tab -Function Complete | |
| # https://ohmyposh.dev/ | |
| # https://ohmyposh.dev/docs/themes | |
| # Themes: space, spaceship, star, stelbent.minimal, tokyo, zash | |
| oh-my-posh init pwsh --config 'stelbent.minimal' | Invoke-Expression |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment