diff options
-rw-r--r-- | .zshrc | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |