Skip to content

Instantly share code, notes, and snippets.

@keithws
Last active December 29, 2015 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keithws/7648530 to your computer and use it in GitHub Desktop.
Save keithws/7648530 to your computer and use it in GitHub Desktop.
Clear Mac OS X Terminal with Control+L
<?xml version="1.0"?>
<root>
<item>
<name>Clear Terminal with standard control code</name>
<item>
<name>Command+L to Control+L (only in Terminal)</name>
<identifier>private.l_plus_command_to_l_plus_control</identifier>
<only>TERMINAL</only>
<autogen>__KeyToKey__ KeyCode::L, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::L, ModifierFlag::CONTROL_L</autogen>
</item>
<item>
<name>Command+K to Control+L (only in Terminal)</name>
<identifier>private.k_plus_command_to_l_plus_control</identifier>
<only>TERMINAL</only>
<autogen>__KeyToKey__ KeyCode::K, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::L, ModifierFlag::CONTROL_L</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment