1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-06 09:41:07 +01:00

44780: add completion to getent for the utmpx key on FreeBSD

This commit is contained in:
Oliver Kiddle 2019-09-27 00:23:50 +02:00
parent 0ff02590c3
commit 81be5d1dce
2 changed files with 10 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2019-09-26 Oliver Kiddle <okiddle@yahoo.co.uk>
* 44780: Completion/Unix/Command/_getent: add completion to
getent for the utmpx key on FreeBSD.
* 44779: Completion/Unix/Command/_git: completion for new
git switch and git restore commands

View file

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