[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How about add a completion for hello?
From: |
Wu Zhenyu |
Subject: |
How about add a completion for hello? |
Date: |
Wed, 30 Mar 2022 17:53:17 +0800 |
Hi! I use zsh and have a little knowledge about zsh completion.
Like this: (this file should be /usr/share/zsh/site-functions/_hello)
```
#compdef hello
_arguments -s '(- *)'{-h,--help}'[display this help and exit]' \
'(- *)'{-v,--version}'[display version information and exit]' \
{-t,--traditional}'[use traditional greeting]' \
{-g,--greeting=}'[use TEXT as the greeting message]:TEXT'
```
How about add a completion for hello?
Thanks!
--
Best Regards
Wu Zhenyu
_hello
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- How about add a completion for hello?,
Wu Zhenyu <=