From bb88edcb0cbc6d10cadd37bde6833e79c7cab531 Mon Sep 17 00:00:00 2001 From: katherine Date: Wed, 9 Sep 2020 10:03:57 -0700 Subject: add rpass func --- .iex.exs | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to '.iex.exs') diff --git a/.iex.exs b/.iex.exs index fcd3931..780c15d 100644 --- a/.iex.exs +++ b/.iex.exs @@ -48,7 +48,33 @@ defmodule IExConfigInit do "]\n", "└:", :reset - ] |> IO.ANSI.format |> IO.chardata_to_string + ] |> IO.ANSI.format |> IO.chardata_to_string, + alive_prompt: [ + # "\e[1A", + "\e[G", # ANSI CHA, move cursor to column 1 + :bright, + :white, + "┌[(", + :blue, + "%node", + :white, + ")", + :magenta, + (if user, do: user <> "@", else: ""), + "elixir-", + Elixir.System.version, + "@", + hostname, + " ", + :blue, + dir, + :white, + "]\n", + "└:", + :reset + ] |> IO.ANSI.format |> IO.chardata_to_string, + continuation_prompt: " ", + alive_continuation_prompt: " " ) end -- cgit v1.2.3