Created
February 24, 2014 09:09
-
-
Save ASKozienko/9184268 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xdebug() { | |
if [ "$1" = "-e" ]; then | |
export XDEBUG_CONFIG="idekey=PHPSTORM" | |
echo "xdebug enabled" | |
return | |
fi | |
if [ "$1" = "-d" ]; then | |
unset XDEBUG_CONFIG | |
echo "xdebug disabled" | |
return | |
fi | |
STATUS="disabled" | |
if [ -n "$XDEBUG_CONFIG" ]; then | |
STATUS="enabled" | |
fi | |
cat << EOF | |
status: $STATUS | |
usage: xdebug [options] | |
OPTIONS: | |
-e Enable xdebug | |
-d Disable xdebug | |
EOF | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment