diff --git a/nix/base-system/.zshrc b/nix/base-system/.zshrc index b4baa87..2ac1635 100644 --- a/nix/base-system/.zshrc +++ b/nix/base-system/.zshrc @@ -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 }