Get current Path of opened Intellij/Phpstorm Project

Hey!

I try to set up BTT with a few terminal commands for my macbook's touchbar. Is it possible to get the current path from an opened project in phpstorm?

As example in every project i have a .sh file with certain project specific commands. So if i open a project in phpstorm i try to make a touchbar icon to run this script related to the current project.

=> sh /OPENEDPROJECTROOT/mytasks.sh

Any idea how to solve? Thanks for all replies,
Clu

-> Found a solution:

in PhpStorm: Settings/Tools/ExternalTool
There u can add a .sh file and then bind it with a short key via the phpstorm keymap. After connect shortcut with BTT...that's it :slight_smile:

1 Like