Skip to content

Instantly share code, notes, and snippets.

@thebergamo
Created November 29, 2016 00:12
Show Gist options
  • Save thebergamo/90365616f0f99dc4fcdf27308bec28e7 to your computer and use it in GitHub Desktop.
Save thebergamo/90365616f0f99dc4fcdf27308bec28e7 to your computer and use it in GitHub Desktop.
Shortcut for start/stop brew services

SS & SP for brew services

How to use

Copy the files above to /usr/local/bin and execute the command chown +x ss sp

For use it just:

starting a service ~> ss mongodb stoping a service ~> sp service

#!/bin/bash
brew services stop $1
#!/bin/bash
brew services start $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment