Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 2/2] run-help: add run-help-btrfs



---
 Functions/Misc/run-help-btrfs | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 Functions/Misc/run-help-btrfs

diff --git a/Functions/Misc/run-help-btrfs b/Functions/Misc/run-help-btrfs
new file mode 100644
index 000000000..d9e3530c1
--- /dev/null
+++ b/Functions/Misc/run-help-btrfs
@@ -0,0 +1,31 @@
+if [ $# -eq 0 ]; then
+    man btrfs
+    return
+fi
+
+while [[ $# != 0 && $1 == -* ]]; do
+    shift
+done
+
+case $1 in
+    (b*)    man btrfs-balance          ;;
+    (c*)    man btrfs-check            ;;
+    (d*)    man btrfs-device           ;;
+    (f*)    man btrfs-filesystem       ;;
+    (i*)    man btrfs-image            ;;
+    (i*)    man btrfs-inspect-internal ;;
+    (m*)    man btrfs-map-logical      ;;
+    (p*)    man btrfs-property         ;;
+    (q*)    man btrfs-qgroup           ;;
+    (q*)    man btrfs-quota            ;;
+    (rec*)  man btrfs-receive          ;;
+    (rep*)  man btrfs-replace          ;;
+    (resc*) man btrfs-rescue           ;;
+    (rest*) man btrfs-restore          ;;
+    (sc*)   man btrfs-scrub            ;;
+    (se*)   man btrfs-send             ;;
+    (su*)   man btrfs-subvolume        ;;
+    (*)     man btrfs                  ;;
+esac
+
+return $?
-- 
2.19.1



Messages sorted by: Reverse Date, Date, Thread, Author