<tools>
<tool name="_Shell Command" os="unix">
<command type="MooScript" options="need-doc">
<code>cmd = HistoryEntry("", "ShellCommand");
if cmd then
Insert(Exec(cmd), "\n");
fi;
</code>
</command>
</tool>
</tools>