Fix multiple list or extraction commands - terminal prompt should only be added at the end of all commands etc