docker change Ctrl+p to something else?

后端 未结 5 1751
甜味超标
甜味超标 2021-01-30 16:20

I am using docker run /bin/bash to develop my container and every time I want to use Ctrl+p in a terminal or in emacs, I have to type it twice, since d

5条回答
  •  梦谈多话
    2021-01-30 16:41

    There is now a solution to this so thought I would update it here for others' convenience.

    Just add a ~/.docker/config.json and set your own keybinding.

    {
        "detachKeys": "ctrl-e,e"
    }
    

    Now you can use Ctrl-p in bash and emacs again. Yeah!

提交回复
热议问题