summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc16
1 files changed, 16 insertions, 0 deletions
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