summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-12-16 12:11:56 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-12-16 12:11:56 +0000
commit3b289b32a7a33c74a18259718bf33e0cf78a7eca (patch)
tree942a9c7fbb660d3899d041528d8a0f78ff901e1a
parent46bad169a8962ac75e64206b1034338f4e01b595 (diff)
downloadzsh-3b289b32a7a33c74a18259718bf33e0cf78a7eca.tar.gz
zsh-3b289b32a7a33c74a18259718bf33e0cf78a7eca.tar.xz
zsh-3b289b32a7a33c74a18259718bf33e0cf78a7eca.zip
unposted: new run-help-p4
-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}