code: def handle_shell_config(shell, vexrc, environ):
      
      from vex import shell_config
      data = shell_config.shell_config_for(shell, vexrc, environ)
      if not data:
          raise exceptions.OtherShell("unknown shell: {0!r}".format(shell))
      if hasattr(sys.stdout, 'buffer'):
          sys.stdout.buffer.write(data)
      else:
          sys.stdout.write(data)
      return 0
docs: Carry out the logic of the --shell-config option.