fix: better service restarting with launchctl

This commit is contained in:
Jeremy Wall 2024-06-20 23:22:54 -04:00
parent 19e86c615c
commit 5f1ae8a24f

View File

@ -14,6 +14,9 @@ if [ -f "$HOME/Library/Application Support/dnvm/env" ]; then
fi
function service_restart() {
launchctl stop $1
launchctl start $1
launchctl kickstart -k -p $1
}
function root_shell() {
sudo -E zsh -i /etc/zshrc
}