From 81be5d1dceae907052858d3c2140a109d5c3f553 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 27 Sep 2019 00:23:50 +0200 Subject: 44780: add completion to getent for the utmpx key on FreeBSD --- ChangeLog | 3 +++ Completion/Unix/Command/_getent | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1d53a8e13..53e63fce9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2019-09-26 Oliver Kiddle + * 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 ;; -- cgit 1.4.1