This plugin adds some commands for maintaining various server programs on my OSX install. It was cobbled together from my previous mamp-control project, and various other sources, and "Works On My Machine™"
Add antigen bundle marshallmick007/osx-dev-zsh-plugin
to your .zshrc
Fork this repo and add a git submodule to your Oh-My-ZSH
custom/plugins
directory
... Or, use this repo as is
cd ~/.oh-my-zsh/custom/plugins
git submodule add [email protected]:marshallmick007/osx-dev-zsh-plugin.git osx-dev
Then, add osx-dev
to your loaded plugins in your .zshrc
file
If you're using zgen, add zgen load marshallmick007/osx-dev-zsh-plugin
to your .zshrc with your other plugins.
devstatus
Prints the current status of all of the servers below
start-nginx
stop-nginx
restart-nginx
status-nginx
start-apache
stop-apache
restart-apache
status-apache
start-mysql
stop-mysql
restart-mysql
status-mysql
start-mongodb
stop-mongodb
restart-mongodb
status-mongodb
Any additions or bug-fixes are welcome, just create an issue and a Pull request
- Add PID file locations to a user-configurable config file
- Support for Unicode symbols
- Extensibility for other server processes