问题描述
我擦除了硬盘并安装了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