code: def new_env(environment):
      
      if not environment:
          print("You need to supply an environment name")
          return
  
      parser = read_config()
  
      if environment in parser.sections():
          print("Environment '%s' already exists" % environment)
          return
  
      print("Please introduce (in order) the commands for '%s'\n" % environment)
      print("Press RETURN to end command and RETURN with empty line to finish\n")
  
      commands = []
      cmd = ""
  
      while True:
          try:
              cmd = raw_input("> ")
  
              if not cmd:
                  break
  
              commands.append(cmd)
  
          except KeyboardInterrupt:
              return
  
      parser.add_section(environment)
      parser.set(environment, "cmd", "\n".join(commands))
  
      write_config(parser)
  
      print("Added environment '%s'" % environment)
docs: Create a new environment in the configuration and ask the
          user for the commands for this specific environment.