From bc490ff67fd674c2a8377d5d4c9ff9582f8943b4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 18 Mar 2009 21:38:16 +0100 Subject: pkg.conf(5): Some style fixes in the custom hook description --- man/5/pkg.conf | 8 ++++---- 1 file 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 BI () {I} +=item BI {I} Define the global hook I, its I 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 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 -- cgit v1.2.3