Created
August 10, 2017 15:55
-
-
Save frankiejarrett/432d53a78d2b87964d5c113f96f97322 to your computer and use it in GitHub Desktop.
Docker <--> Valet
This file contains hidden or 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
# Toggle localhost between Docker and Valet | |
quitapp () { | |
command osascript -e 'quit app "'$*'"' & | |
} | |
alias usevalet="quitapp Kitematic && quitapp Docker && valet restart && mysqld &>/dev/null &" | |
alias usedocker="open -a Docker && valet stop && mysql.server stop && open -a Kitematic" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment