fix: better service restarting with launchctl
This commit is contained in:
parent
19e86c615c
commit
5f1ae8a24f
@ -14,6 +14,9 @@ if [ -f "$HOME/Library/Application Support/dnvm/env" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
function service_restart() {
|
function service_restart() {
|
||||||
launchctl stop $1
|
launchctl kickstart -k -p $1
|
||||||
launchctl start $1
|
}
|
||||||
|
|
||||||
|
function root_shell() {
|
||||||
|
sudo -E zsh -i /etc/zshrc
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user