Copy these files in the gist to a new folder. Generate a package.json:
cd folder-with-code
npm init -y
Then install deps:
<?xml version="1.0"?> | |
<root> | |
<appdef> | |
<appname>Terminal</appname> | |
<equal>com.apple.Terminal</equal> | |
</appdef> | |
<item> | |
<name>TMUX Key Remappings</name> | |
<item> | |
<name>TMUX: Right Control to Ctrl+B</name> |
// requires raf.js (polyfil) | |
(function(){ | |
var ids = {}; | |
function requestId(){ | |
var id; | |
do { | |
id = Math.floor(Math.random() * 1E9); | |
} while (id in ids); |