I want to write a script for my team that will set up some value based on the (JetBrains) IDE they use (I need the path to the IDE application).
One way is to hardcode all the different IDEs and their potential paths, but I was wondering if I could retrieve it dynamically. If they all launch the script from the IDE integrated terminal, is there any command I could run in the terminal that would be able to retrieve the app that triggered the terminal instance?
Just in case it makes thing easier, we are all using macOS.