     if tty_works?() do
       :user_drv.start([:"tty_sl -c -e", tty_args()])
     else
-      :application.set_env(:stdlib, :shell_prompt_func,
-                           {__MODULE__, :prompt})
+      :application.set_env(:stdlib, :shell_prompt_func, {__MODULE__, :prompt})
       :user.start()
       local_start()
     end
   end
+
   def prompt(_n) do
     []
   end

  # to do it just once.
  defp tty_works? do
    try do
      port = Port.open {:spawn, 'tty_sl -c -e'}, [:eof]
      Port.close(port)
    catch
      _, _ -> false

    ref = make_ref()
    opts = options()

    parent =
      spawn_link(fn ->
        receive do
          {:begin, ^ref, other} ->
            :elixir.start_cli()
            send(other, {:done, ref})
        end
      end)

    {IEx, :start, [opts, {__MODULE__, :remote_start, [parent, ref]}]}
  end

  defp options do
    [dot_iex_path: find_dot_iex(:init.get_plain_arguments())]
  end

  defp abort(msg) do
