diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2019-09-27 00:23:50 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2019-09-27 00:23:50 +0200 |
commit | 81be5d1dceae907052858d3c2140a109d5c3f553 (patch) | |
tree | 04e98c37867c55dc7f65e61d5521b34aab1cbb4d | |
parent | 0ff02590c38cfb54c5df9002ceac898225b8fdd1 (diff) | |
download | zsh-81be5d1dceae907052858d3c2140a109d5c3f553.tar.gz zsh-81be5d1dceae907052858d3c2140a109d5c3f553.tar.xz zsh-81be5d1dceae907052858d3c2140a109d5c3f553.zip |
44780: add completion to getent for the utmpx key on FreeBSD
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Unix/Command/_getent | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 1d53a8e13..53e63fce9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 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 ;; |