-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.iex.exs
39 lines (36 loc) · 869 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
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:
[
:blue,
"%prefix",
:cyan,
"|⌚|",
:blue,
"%counter",
" ",
:cyan,
"▶",
:reset
]
|> IO.ANSI.format()
|> IO.chardata_to_string()
)
Logger.configure(default_formatter: [metadata: :all, format: {Telemetria.Formatter, :format}])
Application.put_env(:telemetria, :smart_log, true)