Leopard Terminal (and iTerm) Ignores Control Key Combos

后端 未结 3 1080
温柔的废话
温柔的废话 2021-01-13 02:04

I am very used to using Ctrl + A, Ctrl + E, Ctrl + L, etc. as shortcuts to operations (beginning of line, e

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 02:21

    1. Make sure you have a file called ~/.inputrc ( if this file does not exist bash should use /etc/inputrc for system wide init, but I always prefer to be explicit )
    2. In that file if you want the nauseating emacs voodoo bindings instead of sweet, clean vi:

      set -o emacs set editing-mode emacs

    In the above, remember that emacs mode is the default, but you never get hurt by being explicit...

    1. Again, you said you were using bash, so run:

      bind -p

    at the shell prompt to ensure that you have the bindings you think you have

    1. finally, since it's OSX, check to make sure you have the readline library ( which is how you get all this stuff.) Again, it should be there by default, but perhaps it is not.

    2. Check the TERM setting in the Terminal.app program ( Preferences > Advanced > Emulation )

    The fact that your rig works when you ssh somewhere else means implies a local problem.

    Good luck.

提交回复
热议问题