summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-18 21:38:16 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-18 21:38:16 +0100
commitbc490ff67fd674c2a8377d5d4c9ff9582f8943b4 (patch)
treec5c13a12438c388134826935d1403efbfec3b5fe
parentdf1b0f4737e4323502eba9a100c59ea7a86056df (diff)
pkg.conf(5): Some style fixes in the custom hook description
-rw-r--r--man/5/pkg.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/man/5/pkg.conf b/man/5/pkg.conf
index 2bd9eee..f3b4dbe 100644
--- a/man/5/pkg.conf
+++ b/man/5/pkg.conf
@@ -45,19 +45,19 @@ Operate in debug mode if 1
If 1, automatically execute 'pkg update' before 'pkg push'
and 'pkg remote-update' before 'pkg upgrade'
-=item B<pkg_hook_>I<hook> () {I<content>}
+=item B<function pkg_hook_>I<hook> {I<content>}
Define the global hook I<hook>, its I<content> will be executed
together with pkg's global hooks; the name of the package for which the hook is
being executed will be given as first parameter and is accessible throug B<$1>.
The hook is just a zsh function, so you can use any valid syntax you want,
including newlines.
-See zsh(1) for more
+See zsh(1) for more.
Valid I<hook> names are: post-add, pre-update, post-update, pre-remove.
-Note that post-add automatically executes post-update
+Note that post-add automatically executes post-update.
-Example: pkg_hook_post-update () {clear_line; echo "Hello from package $1!"}
+Example: function pkg_hook_post-update {clear_line; echo "Hello from package $1!"}
=back