Skip to content

Commit

Permalink
Add pwsh alias for “PowerShell” lexers (#1876)
Browse files Browse the repository at this point in the history
  • Loading branch information
ExE-Boss committed Aug 15, 2021
1 parent 9970c52 commit 2ab0083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygments/lexers/shell.py
Expand Up @@ -655,7 +655,7 @@ class PowerShellLexer(RegexLexer):
.. versionadded:: 1.5
"""
name = 'PowerShell'
aliases = ['powershell', 'posh', 'ps1', 'psm1']
aliases = ['powershell', 'pwsh', 'posh', 'ps1', 'psm1']
filenames = ['*.ps1', '*.psm1']
mimetypes = ['text/x-powershell']

Expand Down Expand Up @@ -771,7 +771,7 @@ class PowerShellSessionLexer(ShellSessionBaseLexer):
"""

name = 'PowerShell Session'
aliases = ['ps1con']
aliases = ['pwsh-session', 'ps1con']
filenames = []
mimetypes = []

Expand Down

0 comments on commit 2ab0083

Please sign in to comment.