Skip to content

Segment to display PowerShell Version #894

Discussion options

You must be logged in to vote

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" }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sakabug
Comment options

Answer selected by ViciousMagician
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants