gpt4 book ai didi

Can the emacs shell do prompt completion like zsh?(Emacs外壳可以像zsh一样提示完成吗?)

转载 作者:bug小助手 更新时间:2023-10-24 19:24:32 30 4
gpt4 key购买 nike



I'm a newbie to emacs, and I know that zsh can be called from the M-x shell in emacs, but zsh on emacs doesn't have prompt-completion anymore, and I'm wondering if there's a way to fix it, or if there's any other way to get prompt-completion in the emacs shell (which doesn't apply to zsh as well)
My zsh configuration is the manjaro default configuration.

我是emacs的新手,我知道可以从emacs中的M-x外壳调用zsh,但emacs上的zsh不再具有提示完成功能,我想知道是否有方法可以修复它,或者是否有任何其他方法可以在emacs外壳中获得提示完成功能(这也不适用于zsh)我的zsh配置是Manjaro默认配置。


I would like to have the part with the gray font
enter image description here
This is not available in the emacs shell.
enter image description here
Also, are there any plugins in emacs that would make using the emacs shell closer to normal zsh? It's a bit uncomfortable not being able to use the up and down keys to find the history.

我想有灰色字体的部分,这在emacs外壳中是不可用的。另外,emacs中有没有什么插件可以让emacs外壳的使用更接近于普通的zsh?不能使用向上键和向下键来查找历史记录,这让人有点不舒服。


更多回答

check out vterm, github.com/akermu/emacs-libvterm. That's the closest you'll get

查看vTerm,githeb.com/akeru/emacs-libvTerm。这是你能得到的最接近的

Check out Emacs' ansi-term. Works like a charm for me with fish shell. And there's a number of related discussions here and on Emacs SE worth looking into.

看看Emacs的Ansi-Term。配上鱼壳对我很有吸引力。这里和Emacs SE上有许多相关的讨论值得研究。

优秀答案推荐

The esh-autosuggest package should give you this type of suggestions in eshell.

Esh-autossuggest包应该会在ESCEL语言中给出这类建议。


更多回答

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