.iex.exs
· 720 B · Elixir
Raw
IEx.configure(
default_prompt:
[
# ANSI CHA, move cursor to column 1. Breaks stuff.
# "\e[G",
:light_green,
# plain string
"🧪 ",
:white,
:reset
]
|> IO.ANSI.format()
|> IO.chardata_to_string(),
inspect: [limit: :infinity, pretty: true, printable_limit: :infinity],
colors: [
enabled: true,
syntax_colors: [
number: :yellow,
atom: :cyan,
string: [:italic, :blue],
boolean: [:italic, :magenta],
nil: [:magenta, :bright]
],
ls_directory: :cyan,
ls_device: :yellow,
doc_code: :green,
doc_inline_code: :magenta,
doc_headings: [:cyan, :underline],
doc_title: [:cyan, :bright, :underline]
]
)
| 1 | IEx.configure( |
| 2 | default_prompt: |
| 3 | [ |
| 4 | # ANSI CHA, move cursor to column 1. Breaks stuff. |
| 5 | # "\e[G", |
| 6 | :light_green, |
| 7 | # plain string |
| 8 | "🧪 ", |
| 9 | :white, |
| 10 | :reset |
| 11 | ] |
| 12 | |> IO.ANSI.format() |
| 13 | |> IO.chardata_to_string(), |
| 14 | inspect: [limit: :infinity, pretty: true, printable_limit: :infinity], |
| 15 | colors: [ |
| 16 | enabled: true, |
| 17 | syntax_colors: [ |
| 18 | number: :yellow, |
| 19 | atom: :cyan, |
| 20 | string: [:italic, :blue], |
| 21 | boolean: [:italic, :magenta], |
| 22 | nil: [:magenta, :bright] |
| 23 | ], |
| 24 | ls_directory: :cyan, |
| 25 | ls_device: :yellow, |
| 26 | doc_code: :green, |
| 27 | doc_inline_code: :magenta, |
| 28 | doc_headings: [:cyan, :underline], |
| 29 | doc_title: [:cyan, :bright, :underline] |
| 30 | ] |
| 31 | ) |