I've found a dirty-workarround for linux.
Create a file (e.g phpstorm_wrapper) and put this inside:
#!/bin/bash
if [ $# > 1 ]; then
exec "$@"
else
eval "$1"
fi
Save and make it executable.
USAGE:
Now you can run the wrapper-script as Program:
in your "external tools" and set all Parameters you like to the Arguments
inputfield.
The script will execute it and return the result of it.
If you need to use ENV-Variable, you must use env
command like this:
env FASTLANE_JSON_KEY_FILE=./release_manager.json fastlane test
If you need to use | (pipes), phpstorm put it in quotes. To be able to execute commands which use |, encapsulate the whole Textfield "Arguments" in the external tool dialoge
in quotes.
Example: