I started to scroll through tmux: productive mouse-free development. I thought I would give it a try to help me better manage remote systems by using it locally. And for the most part it has been a pretty awesome tool that yields some results pretty quickly for my investment. So far the only tedious part is the lack of ability to easily scroll back through the history. I can do it, but it is by far not as easy it was simply using Terminal.
Of course, after starting to read the book and starting working with the first few commands I started to hate using Ctrl+B as the prefix key. I immediately stopped reading and started to search for an easier way. What follows is how I mapped my CAPS LOCK key as Ctrl+B.
Disabling CAPS LOCK
If you haven’t already done so, gain an extra key and open up your System Preferences > Keyboard > Modifier Keys … and rebind CAPSLOCK to No Action.
Rebinding CAPSLOCK to CONTROL_R (Right Control Key)
- Install PCKeyboardHack
- Open System Preferences > PCKeyboardHack
- Change “Caps Lock” to keycode
62
.
Rebinding CONTROL_R (Right Control Key) to CONTROL + B
Install KeyRemap4MacBook
Open System Preferences > KeyRemap4MackBook > Misc & Uninstall
- Click “Open private.xml”
- Copy and Paste the private.xml provided with in this gist.
- Open System Preferences > KeyRemap4MackBook > Change Key
- Click “ReloadXML”
- Toggle open “TMUX Key Remappings”
- Check “TMUX: Right Control to Control+B