我最近发现,如果我们按Ctrl+ X Ctrl+ E,bash 会在编辑器中打开当前命令(在$VISUAL或 中设置$EDITOR)并在编辑器关闭时执行它。但它似乎没有记录在man页面中。
Kar*_*tik 41
我现在已经发现了。在问这个之前,我应该更仔细地阅读它。
该man页面说:
Run Code Online (Sandbox Code Playgroud)edit-and-execute-command (C-xC-e) Invoke an editor on the current command line, and execute the result as shell commands. Bash attempts to invoke $VISUAL, $EDITOR, and emacs as the editor, in that order.