summaryrefslogtreecommitdiff
path: root/etc/function
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-09-12 19:24:12 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-09-12 19:24:12 +0200
commit3d03f8ed9d9c4f75381ff938784abed5b84c64eb (patch)
tree451bb25c6be1fad5fbcff32cc8609c3695217ead /etc/function
parente4a7c0d5eb88b70e04e5980f347417431b0f5524 (diff)
etc/function: Enable Exceptions
Diffstat (limited to 'etc/function')
-rw-r--r--etc/function2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/function b/etc/function
index 4ada9b2..5bca1d9 100644
--- a/etc/function
+++ b/etc/function
@@ -2,6 +2,8 @@ for i in $ZDIR/functions/*; {
autoload $i:t
}
+autoload throw catch
+
# from https://git.tabularazor.org/~mikael/etc/tree/zsh/functions
for action in Start Stop Restart Reload; {
eval "$action() { sudo /etc/init.d/\$1 ${action:l} ; }"