forked from am-kantox/elixir-iteraptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.iex.exs
44 lines (40 loc) · 878 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
36
37
38
39
40
41
42
43
44
global_settings = "~/.iex.exs"
if File.exists?(global_settings), do: Code.require_file(global_settings)
Application.put_env(:elixir, :ansi_enabled, true)
IEx.configure(
inspect: [limit: :infinity],
colors: [
eval_result: [:cyan, :bright],
eval_error: [[:red, :bright, "\n▶▶▶\n"]],
eval_info: [:yellow, :bright],
syntax_colors: [
number: :red,
atom: :blue,
string: :green,
boolean: :magenta,
nil: :magenta,
list: :white
]
],
default_prompt:
[
# cursor ⇒ column 1
"\e[G",
:blue,
"%prefix",
:magenta,
"|itr|",
:blue,
"%counter",
" ",
:yellow,
"▶",
:reset
]
|> IO.ANSI.format()
|> IO.chardata_to_string()
)
defmodule S do
defstruct dt: DateTime.utc_now(), map: %{foo: 42, bar: %{baz: 73}}
end
import Iteraptor.AST