A bash function for saving tagged commands.