.inputrc当我使用 bash 时,我曾经有这个,但它在 ZSH 中不起作用,因为 ZSH 不读取 .inputrc (AFAIK):
$if Bash
# Meta+O can be made to load the previous
# command and position the cursor for typing an option
"\eo": "\C-p\C-a\ef "
Run Code Online (Sandbox Code Playgroud)
这是我在 bash 时代最怀念的一件事。有没有办法将此命令移植到 ZSH?我尝试了一些绑定键恶作剧,但收效甚微。
zsh ×1