Jabba-Team / jabba

(cross-platform) Java Version Manager
Apache License 2.0
141 stars 11 forks source link

Highlight Current version during jabba ls #29

Closed CelesteGH closed 1 year ago

CelesteGH commented 1 year ago

nvm combines ls and current into ls by simply adding a * on the left of the version used :

nvm ls

This feels way more efficient.

patrick-mccourt commented 1 year ago

Hi @CelesteGH

I'm not sure I follow the ask here, can you elaborate on, what you're asking?

Thanks

CelesteGH commented 1 year ago

sure sorry. Would just like to know when using ls the current version used.

I've seen this done in the tool nvm by adding * in front of the version used for example.

patrick-mccourt commented 1 year ago

I see, would that give similar output to java --version?

patrick-mccourt commented 1 year ago

I understand now, as ls prints out the installed versions, when it gets to current, highlight it somehow to show that is current.