projects
/
zsh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add copy-prev-shell-word keybinding. add Status/Start/Stop/Restart/Reload function...
[zsh.git]
/
.zsh
/
05_Functions.zsh
diff --git
a/.zsh/05_Functions.zsh
b/.zsh/05_Functions.zsh
index
bdf16cc
..
d2083f1
100644
(file)
--- a/
.zsh/05_Functions.zsh
+++ b/
.zsh/05_Functions.zsh
@@
-133,3
+133,10
@@
function kill_agent() {
kill -TERM ${SSH_AGENT_PID}
rm -f ${_agent_ssh_env}
}
+
+function Status Start Stop Restart Reload {
+ typeset script
+ for script in ${*}; {
+ sudo /etc/init.d/${script} ${0:l}
+ }
+}