17 lines
387 B
Elixir
17 lines
387 B
Elixir
Application.put_env(:elixir, :ansi_enabled, true)
|
|
|
|
# PROTIP: to break, `#iex:break`
|
|
|
|
IEx.configure(
|
|
colors: [enabled: true],
|
|
default_prompt: [
|
|
"\e[G", # ANSI CHA, move cursor to column 1
|
|
:magenta,
|
|
"%prefix", # IEx prompt variable
|
|
"#",
|
|
"%counter", # IEx prompt variable
|
|
">", # plain string
|
|
:reset
|
|
] |> IO.ANSI.format |> IO.chardata_to_string
|
|
)
|
|
|