ConEmu + zsh:键盘快捷键和其他 shell 功能如何工作?
ConEmu + zsh: how will keyboard shortcuts and other shell features work?
我正在努力解决这个问题:在 Windows 上,我使用 cmder (a wrapper around ConEmu),这改进了裸露的 cmd.exe
体验( 很多) 但也可以托管其他 shells,如 PowerShell 或 Git Bash。我想要更多 "unix-y" 但仍与我的 Windows 工具很好地集成。 Git Bash 为我找到了正确的平衡:我可以做 rm -rf node_modules
之类的事情,但仍然 运行 我的 Windows 命令很好。
进入cmder很容易得到Git Bash,但是,我想用zhs替换shell,主要是为了获得超级有用的 "up arrow respects the current prefix" 功能(我写 git
,按向上箭头,只得到关于最近 Git 命令的建议)。
问题是,谁来处理向上箭头?它会是 ConEmu 并执行 Windows-y 操作(循环执行所有命令)还是会下降到 zsh 并由它执行循环?这是如何工作的?
相关:ConEmu: possible to change the up arrow behavior?
ConEmu is not a shell, so it does not provide "shell features" like remote access, tab-completion, command history and others.
只有 shell 本身知道用户何时键入命令,并且只有 shell 可以存储执行的命令历史记录。当然,只有 shell 可以处理 Up/Down/Tab 键到 "browse" 存储的命令历史记录。
cmder 是一个工具包,包括 clink,它集成到 cmd.exe 并在内部处理 cmd 的提示。因此,在 cmder 中默认 Up/Down/Tab 箭头由 clink 处理。
我正在努力解决这个问题:在 Windows 上,我使用 cmder (a wrapper around ConEmu),这改进了裸露的 cmd.exe
体验( 很多) 但也可以托管其他 shells,如 PowerShell 或 Git Bash。我想要更多 "unix-y" 但仍与我的 Windows 工具很好地集成。 Git Bash 为我找到了正确的平衡:我可以做 rm -rf node_modules
之类的事情,但仍然 运行 我的 Windows 命令很好。
进入cmder很容易得到Git Bash,但是,我想用zhs替换shell,主要是为了获得超级有用的 "up arrow respects the current prefix" 功能(我写 git
,按向上箭头,只得到关于最近 Git 命令的建议)。
问题是,谁来处理向上箭头?它会是 ConEmu 并执行 Windows-y 操作(循环执行所有命令)还是会下降到 zsh 并由它执行循环?这是如何工作的?
相关:ConEmu: possible to change the up arrow behavior?
ConEmu is not a shell, so it does not provide "shell features" like remote access, tab-completion, command history and others.
只有 shell 本身知道用户何时键入命令,并且只有 shell 可以存储执行的命令历史记录。当然,只有 shell 可以处理 Up/Down/Tab 键到 "browse" 存储的命令历史记录。
cmder 是一个工具包,包括 clink,它集成到 cmd.exe 并在内部处理 cmd 的提示。因此,在 cmder 中默认 Up/Down/Tab 箭头由 clink 处理。