about summary refs log tree commit diff
path: root/Functions/Misc
diff options
context:
space:
mode:
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}