WindTerm
WindTerm copied to clipboard
为什么在 zsh 下,不记录历史命令呢?
历史命令,只在 bash 下才记录,切换到 zsh 后,就不记录历史命令了。这是设计如此的吗?
https://github.com/kingToolbox/WindTerm/issues/773#issuecomment-1132051731
As @issakk mentioned, WindTerm
will only display the autocomplete list when it finds the command prompt. Your zsh
may use a custom command prompt, so there is no autocompletion.
This is not by design, you just need to modify the "prompt.line.linux"
in the WindTerm_install_path/terminal/schemes/linux/linux.lexer
to recognize your command prompt to restore the auto completion
feature.
If possible, you can also provide me with a screenshot of the command prompt so that I can customize the rules for you.
I think the quick solution is change your zsh theme - make your prompt more like the default prompt .
ZSH_THEME="essembeh"
This zsh theme can work good with history.
Seems like if you put a '#' at the beginning of a command line, it's recognized
before:
after: