Last active
May 26, 2017 10:14
-
-
Save andkirby/8db337ea6495951e6f952005ce7c170b to your computer and use it in GitHub Desktop.
XDebug switcher
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
#!/usr/bin/env bash | |
############################################################################### | |
# !!!!!!!!!! This script is deprecated, but you may continue use it. !!!!!!!! # | |
# Actually, it doesn't contain a code. It migrated into a repository. # | |
# Please take a look at https://github.com/rikby/xdebug-switcher # | |
############################################################################### | |
# | |
# Download this gist into file "~/.xd_swi" | |
# curl -Ls https://goo.gl/IxjlaC | bash | |
# or | |
# curl -Ls https://gist.github.com/andkirby/8db337ea6495951e6f952005ce7c170b/raw/.xd_swi | bash | |
# And run: | |
# xd_swi | |
# - switch status | |
# xd_swi 0|off | |
# - disable xdebug | |
# xd_swi 1|on | |
# - enable xdebug | |
# xd_swi status | |
# - show status | |
# xd_swi stat | |
# - show status as integer | |
# xd_swi test | |
# - test all commands | |
# xd_swi -h | |
# - show help | |
# | |
# Appreciates to owner/s for advices in http://bash3boilerplate.sh | |
# http://kvz.io/blog/2013/11/21/bash-best-practices/ | |
# | |
# This script migrated to the project https://github.com/rikby/xdebug-switcher | |
# Anyway you are still able to use it. | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
#set -o xtrace | |
curl -Ls https://raw.github.com/rikby/xdebug-switcher/master/download | bash -s -- $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist has been moved to the project https://github.com/rikby/xdebug-switcher.