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

问题描述

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

示例:

@H_404_8@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

完成...

@H_404_8@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