终端 bash_completion 报错


-bash: /usr/local/etc/bash_completion.d/onefetch: line 110: conditional binary operator expected 
-bash: /usr/local/etc/bash_completion.d/onefetch: line 110: syntax error near `IFS' 
-bash: /usr/local/etc/bash_completion.d/onefetch: line 110: `                    if [[ -v IFS ]]; then' 

虽然这个报错不影响使用,但是看着心里不舒服。通过询问chat,说可能是因为您的 Bash 版本不支持 -v 选项导致的。然后我就搜索
brew search completion 看到 bash-completionbash-completion@2. 果断卸载旧版的安装新版的,问题得到解决。但是git得代码补全又没了


评论