This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/elixir/iex.exs

29 lines
522 B
Elixir
Raw Permalink Normal View History

2020-01-20 11:40:26 -06:00
Application.put_env(:elixir, :ansi_enabled, true)
2020-03-23 13:23:50 -05:00
# PROTIP: to break, `#iex:break`
2020-01-20 11:40:26 -06:00
IEx.configure(
colors: [enabled: true],
2022-07-20 13:43:27 -05:00
inspect: [
pretty: true,
2023-05-09 10:03:47 -05:00
printable_limit: :infinity,
2022-07-20 13:43:27 -05:00
limit: :infinity
],
default_prompt:
[
# ANSI CHA, move cursor to column 1
"\e[G",
:magenta,
# IEx prompt variable
"%prefix",
"#",
# IEx prompt variable
"%counter",
# plain string
">",
:reset
]
|> IO.ANSI.format()
|> IO.chardata_to_string()
2020-01-20 11:40:26 -06:00
)