簡體   English   中英

git 配置完成在 ubuntu 20.04 上搞砸了魚殼

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM