Last active
November 30, 2021 20:24
-
-
Save msftrncs/a5814ff720396c6754ad01a8a7d3635b to your computer and use it in GitHub Desktop.
PSReadLine profile options
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
| Set-PSReadLineOption -Colors @{ | |
| Command = 'DarkYellow' | |
| Comment = 'DarkGray' | |
| Keyword = 'Magenta' | |
| Member = 'White' | |
| Number = 'Cyan' | |
| Operator = 'Blue' | |
| Parameter = 'Yellow' | |
| String = 'Green' | |
| Type = 'Red' | |
| Variable = 'DarkCyan' | |
| } -PromptText '> ' | |
| if ($env:TERM_PROGRAM -eq 'vscode') { | |
| Set-PSReadLineKeyHandler -Chord Alt-Enter -Function AddLine | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is my current PSReadLine profile options for syntax coloring and key handling.