summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_getent
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2019-09-27 00:23:50 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2019-09-27 00:23:50 +0200
commit81be5d1dceae907052858d3c2140a109d5c3f553 (patch)
tree04e98c37867c55dc7f65e61d5521b34aab1cbb4d /Completion/Unix/Command/_getent
parent0ff02590c38cfb54c5df9002ceac898225b8fdd1 (diff)
downloadzsh-81be5d1dceae907052858d3c2140a109d5c3f553.tar.gz
zsh-81be5d1dceae907052858d3c2140a109d5c3f553.zip
44780: add completion to getent for the utmpx key on FreeBSD
Diffstat (limited to 'Completion/Unix/Command/_getent')
-rw-r--r--Completion/Unix/Command/_getent7
1 files changed, 7 insertions, 0 deletions
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
;;