diff --git a/.zshrc b/.zshrc index 4c8ca02..656bd9c 100644 --- a/.zshrc +++ b/.zshrc @@ -32,6 +32,22 @@ function line() echo " $1" } +function shutdown() +{ + dbus-send --system --print-reply \ + --dest="org.freedesktop.ConsoleKit" \ + /org/freedesktop/ConsoleKit/Manager \ + org.freedesktop.ConsoleKit.Manager.Stop +} + +function reboot() +{ + dbus-send --system --print-reply \ + --dest="org.freedesktop.ConsoleKit" \ + /org/freedesktop/ConsoleKit/Manager \ + org.freedesktop.ConsoleKit.Manager.Restart +} + # Initialize colors. autoload -U colors colors