git config完成在Ubuntu 20.04上搞砸了鱼壳

问题描述

我擦除了硬盘并安装了Ubuntu 20.04.1。使用apt安装fish版本3.1.0和git 2.25.1。每当我与git config命令一起使用时,制表符补全都会显示错误。完成仍然有效,但看起来非常难看。我该如何解决或调试?

示例:

boz@mybox ~/myproject (develop|!35…)> 
git config --global credential.helper  /usr/share/doc/git/contrib/credential/libsecr__fish_is_first_arg: command not found
fish: 
__fish_git_using_command config; and __fish_is_first_arg
                                     ^
in command substitution
et/__fish_is_first_arg: command not found
fish: 
__fish_git_using_command config; and __fish_is_first_arg
                                     ^
boz@mybox ~/myproject (develop|!35…)> 
git config --global credential.helper  /usr/share/doc/git/contrib/credential/libsecret/
…ibsecret/git-credential-libsecret    …ibsecret/git-credential-libsecret.o
…ibsecret/git-credential-libsecret.c  …ibsecret/Makefile                  

完成...

git config --global credential.helper  /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret 

...这是正确的。因此,完成工作很丑陋。

到目前为止,我仅通过git config命令看到了这一点。

解决方法

显然,fish 3.1.2中修复了一个错误,但apt中尚不可用。 参见:https://github.com/fish-shell/fish-shell/issues/7176#issuecomment-653744454

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...