From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@zsh.org>
Subject: PATCH: complete utmpx key for FreeBSD's getent
Date: Thu, 26 Sep 2019 23:30:39 +0200 [thread overview]
Message-ID: <77715-1569533439.099793@QDWL.oB6h.gMDZ> (raw)
This adds completion to getent for the utmpx key on FreeBSD.
Oliver
diff --git a/Completion/Unix/Command/_getent b/Completion/Unix/Command/_getent
index 0fb9a0af4..b96852db3 100644
--- a/Completion/Unix/Command/_getent
+++ b/Completion/Unix/Command/_getent
@@ -50,6 +50,13 @@ case $state in
aliases|passwd|shadow|group)
_wanted keys expl key compadd ${keys%%:*} && ret=0
;;
+ utmpx)
+ if (( CURRENT > 3 )); then
+ _files && ret=0
+ else
+ _wanted keys expl key compadd active lastlogin log && ret=0
+ fi
+ ;;
*) _message -e keys key;;
esac
;;
reply other threads:[~2019-09-26 21:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=77715-1569533439.099793@QDWL.oB6h.gMDZ \
--to=okiddle@yahoo.co.uk \
--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).