-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.iex.exs
35 lines (33 loc) · 790 Bytes
/
.iex.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# source: https://extips.blackode.in/part1
#
# IEx.configure colors: [enabled: true]
# IEx.configure colors: [ eval_result: [ :cyan, :bright ] ]
Code.compiler_options(ignore_module_conflict: true)
IO.puts("<shell history is found in #{:filename.basedir(:user_cache, "erlang-history")}>")
Application.put_env(:elixir, :ansi_enabled, true)
IEx.configure(
colors: [
eval_result: [:green, :bright],
eval_error: [:red, :bright],
eval_info: [:yellow, :bright]
],
inspect: [
limit: :infinity,
pretty: true,
width: 160
],
width: 160,
default_prompt:
[
"\e[G",
:white,
"%prefix ",
:magenta,
# Elixir symbol from nerdfonts
"\ue62d",
" |>",
:reset
]
|> IO.ANSI.format()
|> IO.chardata_to_string()
)