Getting a tool version from asdf (improved)
$ asdf current nodejs 2>&1 | awk '{print $2}'
22.11.0
It’s an improved version of the previously mentioned solution.
Kudos to André Wendt who showed me how to replace sed and cut with awk.
- TIL rating:
- good to know