linux - text editor mode for calling bash command -
suppose want enter multiline command via bash know can append \ in end of line enter new line
however possible enter legitimate "text editor mode" don't have enter \ , press enter suffice
eg..you type in command command line before entering parameters press magic button allows enter vi mode enter stuff "vi mode" exit , text entered in "vi mode" turns parameters of command press enter command executes
is possible in bash command line? if so, how do it?
see man bash
:
edit-and-execute-command (c-xc-e) invoke editor on current command line, , execute result shell commands. bash attempts invoke $visual, $editor, , emacs editor, in order.
per default bash configured emacs mode, hence emacs c-xc-e command.
if vi can set bash vi mode: set -o vi
. allows normal line editing vi way without invoking explicit editor.
Comments
Post a Comment