Segment to display PowerShell Version #894
Answered
by
ViciousMagician
ViciousMagician
asked this question in
Troubleshoot
-
Is there a way to display the version of powershell? |
Beta Was this translation helpful? Give feedback.
Answered by
ViciousMagician
Aug 13, 2021
Replies: 1 comment 1 reply
-
Nevermind, i asked too early. My solution below in case anyone else is looking for an answer Add this to your $PROFILE Add this segment to your theme |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ViciousMagician
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind, i asked too early. My solution below in case anyone else is looking for an answer
Add this to your $PROFILE
$env:POSH=$PSVersionTable.PSVersion.ToString()
Add this segment to your theme
{ "type": "envvar", "style": "powerline", "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#0077c2", "properties": { "var_name": "POSH" }