1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

bash で入力中のコマンドをエディタで編集して実行するショートカットキー

Posted at

bash でコマンドを入力中に、ちょっと長くなってきたからエディタで編集したいな、となったら以下のショートカットキーを押せばエディタが立ち上がる。

CTRL-X + CTRL-E

保存終了後、編集した内容でコマンドが実行される。

(bash マニュアル内の記述)

edit-and-execute-command (C-x C-e)
    Invoke an editor on the current command line, and execute the result as shell commands.  Bash attempts to invoke $FCEDIT, $EDITOR, and emacs as the editor, in that order.
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?