ZSH: Add user shutdown functions
These functions overwrite the executables reboot and shutdown
This commit is contained in:
parent
2bd2535286
commit
9e4506a7d2
1 changed files with 16 additions and 0 deletions
16
.zshrc
16
.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
|
||||
|
|
Loading…
Reference in a new issue