문제

I moved to Mac OS and I'm facing the control vs command key problem.

I already changed the settings for my external keyboard, so that my control key is mapped to command key and viceversa. This fixes my habits of ctrl-x,c,v,z and ctrl-t,ctrl-w for the browser and most applications.

However, when I work with Terminal and zsh, now ctrl-w, ctrl-u, ctrl-a etc... does not do what I expect, because I'm of course sending command-w etc.

How do I fix this once and for all so that I don't need to change my habits?

도움이 되었습니까?

해결책 2

I solved my problem by switching from the default Mac OS terminal to iTerm2

which allows to remap modifiers very easily.

enter image description here

다른 팁

  1. Install the awesome, free Karabiner-Elements app.
  2. Install the "Keyboard shortcuts for Terminal apps" mod.

Then, instead of using ^W, ^U, ^A, etc., you can just use the modifier keys (//) plus the arrow/delete keys (/////), just as you do in the rest of macOS.

Don't like those exact mappings? Just git clone https://github.com/pqrs-org/KE-complex_modifications.git and write your own mod. 😎

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 apple.stackexchange
scroll top