Skip to content

Instantly share code, notes, and snippets.

@msftrncs
Last active November 30, 2021 20:24
Show Gist options
  • Select an option

  • Save msftrncs/a5814ff720396c6754ad01a8a7d3635b to your computer and use it in GitHub Desktop.

Select an option

Save msftrncs/a5814ff720396c6754ad01a8a7d3635b to your computer and use it in GitHub Desktop.
PSReadLine profile options
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
}
@msftrncs
Copy link
Author

This is my current PSReadLine profile options for syntax coloring and key handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment