Couple of items - confirm isn't necessary unless you're passing a file.  It's probably better to print this message AFTER the confirmation - i.e. list env vars (if setting via a file) and then display the confirm message.  Then display "Setting environment variables ... " instead of "Wait ..." down below.