diff options
-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 ;; |