Bash CTRL to move cursor between words/strings

后端 未结 4 1057
深忆病人
深忆病人 2020-12-22 17:41

I am use to using the CTRL key to move faster when using the left and right arrow keys (goes to end of a word, instead of one char at a time).

Can I do

4条回答
  •  有刺的猬
    2020-12-22 18:01

    A .inputrc in your home directory will cause ctrl+left to stop working on Ubuntu (for example).

    To get everything working, add the following to ~/.inputrc:

    # Include system-wide inputrc, which is ignored by default when
    # a user has their own .inputrc file.
    $include /etc/inputrc
    

    credit to f.kowal

提交回复
热议问题