摘要: 1. 代码如下: #~/.bashrc function _complete() { COMPREPLY=($(compgen -W "ab cd ef" "${COMP_WORDS[1]}")) } function func() { echo $1 } complete -F _complete 阅读全文
posted @ 2021-05-12 15:50 成民 阅读(529) 评论(0) 推荐(0) 编辑