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 | 44779: completion for new git switch and git restore commands (diff) | |
| download | zsh-81be5d1dceae907052858d3c2140a109d5c3f553.tar zsh-81be5d1dceae907052858d3c2140a109d5c3f553.tar.gz zsh-81be5d1dceae907052858d3c2140a109d5c3f553.tar.bz2 zsh-81be5d1dceae907052858d3c2140a109d5c3f553.tar.lz zsh-81be5d1dceae907052858d3c2140a109d5c3f553.tar.xz zsh-81be5d1dceae907052858d3c2140a109d5c3f553.tar.zst 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
@@ -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 ;; |
