From a8b66d0ec95a6d8eb0207bb12b5ea7004381b0ad Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Mon, 24 Feb 2014 13:35:56 -0600 Subject: [PATCH] add nginx shortcuts --- zsh/functions.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 345f1dd..a6fbc04 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -28,6 +28,17 @@ function f() { find . -name "$1" } +function ng-stop() { + sudo launchctl stop homebrew.mxcl.nginx +} + +function ng-start() { + sudo launchctl start homebrew.mxcl.nginx +} +function ng-restart() { + sudo launchctl start homebrew.mxcl.nginx +} + # Start an HTTP server from a directory, optionally specifying the port function server() {