adapt 'trigger' to bash
adapt 'trigger' to its new environement