summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Functions/Misc/.distfiles1
-rw-r--r--Functions/Misc/run-help-p45
3 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 234691a37..1c86b3640 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-12-16  Peter Stephenson  <pws@csr.com>
 
+	* unposted: Functions/Misc/run-help-p4, Functions/Misc/.distfiles:
+	new helper.
+
 	* 27492 based on Jörg Sommer: 27473: Functions/Misc/run-help:
 	fix alias problem.
 
@@ -12497,5 +12500,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4844 $
+* $Revision: 1.4845 $
 *****************************************************
diff --git a/Functions/Misc/.distfiles b/Functions/Misc/.distfiles
index 4ffbec1cd..b39d09130 100644
--- a/Functions/Misc/.distfiles
+++ b/Functions/Misc/.distfiles
@@ -13,6 +13,7 @@ promptnl
 relative
 run-help
 run-help-git
+run-help-p4
 run-help-svk
 run-help-svn
 sticky-note
diff --git a/Functions/Misc/run-help-p4 b/Functions/Misc/run-help-p4
new file mode 100644
index 000000000..662ce94fe
--- /dev/null
+++ b/Functions/Misc/run-help-p4
@@ -0,0 +1,5 @@
+if (( ! $# )); then
+  p4 help commands
+else
+  p4 help $1
+fi | ${=PAGER:-less}