From c4b2f89c82eca5ce9a67989a74bf962f75a1a9d8 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Tue, 11 Jun 2024 16:57:44 -0400 Subject: [PATCH] feat: launchctl helper --- nix/base-system/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix/base-system/.zshrc b/nix/base-system/.zshrc index 030e790..b4baa87 100644 --- a/nix/base-system/.zshrc +++ b/nix/base-system/.zshrc @@ -12,3 +12,8 @@ bindkey '^R' history-incremental-search-backward if [ -f "$HOME/Library/Application Support/dnvm/env" ]; then . "$HOME/Library/Application Support/dnvm/env" fi + +function service_restart() { + launchctl stop $1 + launchctl start $1 +}