Like previous answers, I too, used Karabiner. Most Excellent App!
What I did differently tho, was to add a custom key mappings to mitigate the MAC command v. control buttons in the Terminal.
In my situation, I'm using a Logitech keyboard sooo no Apple-Command Key.
Essentially, what I did was Map the MAC Command key to the Control Key. My reasoning was that I wanted to preserve common Ctrl-Key sequences that MAC maps to Command-Key Sequences (i.e. Ctrl-F, for find). Also, I needed to preserve the true Control sequences, such as Ctrl-C for SIGINT. Basically we're multiplexing the Control key some.
After installing Karabiner, I was not able to get Ctrl-c to send the unix (SIGINT) initially. However, once I modified the private.xml, I got that working.
- Download the Karabiner .dmg file from: https://pqrs.org/osx/karabiner/
- Double-click the .dmg file to install it.
- Once Karabiner is installed, bring up the key mappings.
3.1 DO NOT map the either Command_L or Command_R to anything. Leave them unchecked.
3.2 Map the Control_L & Control_R to the respective Command_L & Command_R.
Next, edit the private.xml file. Helpful link: https://pqrs.org/osx/karabiner/document.html#privatexml
4.1 Add the following snippet:
<appendix>Map Command+C to Ctrl+C For Terminal</appendix>
<autogen>__KeyToKey__ KeyCode::C, VK_COMMAND, KeyCode::C, VK_CONTROL</autogen>
- Hit the reload button, and you should be good.
- Please note that in the Terminal window, if you want to copy/paste text, you will select it with the mouse or whatever. However, to now copy it to clipboard, you will need to use rt-click->copy from the mouse. Remember, we remapped Ctrl-C (which used to be "copy"), and is now SIGINT.