diff options
-rw-r--r-- | man/5/pkg.conf | 8 |
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 |