Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 2/2] run-help: add run-help-btrfs
Another patch we missed.
> 2018/12/28 0:24, Samir Benmendil <me@xxxxxx> wrote:
>
> --- /dev/null
> +++ b/Functions/Misc/run-help-btrfs
(snip)
> + (i*) man btrfs-image ;;
> + (m*) man btrfs-map-logical ;;
These two are not subcommands of btrfs.
> + (q*) man btrfs-qgroup ;;
> + (q*) man btrfs-quota ;;
These two must be distinguished.
diff --git a/Functions/Misc/run-help-btrfs b/Functions/Misc/run-help-btrfs
new file mode 100644
index 000000000..0dc1dabcb
--- /dev/null
+++ b/Functions/Misc/run-help-btrfs
@@ -0,0 +1,22 @@
+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-inspect-internal ;;
+ (p*) man btrfs-property ;;
+ (qg*) man btrfs-qgroup ;;
+ (qu*) 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
-----
Jun
Messages sorted by:
Reverse Date,
Date,
Thread,
Author