about summary refs log tree commit diff
path: root/Functions/Misc
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 /Functions/Misc
parent46bad169a8962ac75e64206b1034338f4e01b595 (diff)
downloadzsh-3b289b32a7a33c74a18259718bf33e0cf78a7eca.tar.gz
zsh-3b289b32a7a33c74a18259718bf33e0cf78a7eca.tar.xz
zsh-3b289b32a7a33c74a18259718bf33e0cf78a7eca.zip
unposted: new run-help-p4
Diffstat (limited to 'Functions/Misc')
-rw-r--r--Functions/Misc/.distfiles1
-rw-r--r--Functions/Misc/run-help-p45
2 files changed, 6 insertions, 0 deletions
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}