[英]git config completions messed up for fish shell on 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.