gpt4 book ai didi

git 配置完成在 ubuntu 20.04 上搞砸了 fish shell

转载 作者:行者123 更新时间:2023-12-04 08:59:12 34 4
gpt4 key购买 nike

我删除了我的硬盘并安装了 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

关于git 配置完成在 ubuntu 20.04 上搞砸了 fish shell ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63637100/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com