zsh-workers
 help / color / mirror / code / Atom feed
From: Samir Benmendil <me@rmz.io>
To: zsh-workers@zsh.org
Cc: Samir Benmendil <me@rmz.io>
Subject: [PATCH 2/2] run-help: add run-help-btrfs
Date: Thu, 27 Dec 2018 15:24:44 +0000	[thread overview]
Message-ID: <20181227152444.31608-2-me@rmz.io> (raw)
In-Reply-To: <20181227152444.31608-1-me@rmz.io>

---
 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


  reply	other threads:[~2018-12-27 15:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-27 15:24 [PATCH 1/2] run-help: chain run-help-sudo to call run-help on the next argument Samir Benmendil
2018-12-27 15:24 ` Samir Benmendil [this message]
2020-12-09  9:14   ` [PATCH 2/2] run-help: add run-help-btrfs Jun T
2020-12-09 15:51     ` Christian K
2020-12-11  6:08       ` Jun T
2020-12-09  9:05 ` [PATCH 1/2] run-help: chain run-help-sudo to call run-help on the next argument Jun T

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181227152444.31608-2-me@rmz.io \
    --to=me@rmz.io \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).