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:
parent
0ff02590c3
commit
81be5d1dce
2 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue