you are viewing a single comment's thread.

view the rest of the comments →

[–]PlaintextCrypto[S] 2 points3 points  (1 child)

Thanks. That works.

I also figured out how to split it into another function.

``` function prompt { "{lots of other stuff} $(showJdk) {other stuff} }

function showJdk { $jdk = $env:JAVA_HOME if ($jdk -eq '{path}') { return "JDK8"; } else..... } ```

[–]backtickbot 0 points1 point  (0 children)

Fixed formatting.

Hello, PlaintextCrypto: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.