Skip to content

Instantly share code, notes, and snippets.

@userimack
Created May 31, 2019 06:18
Show Gist options
  • Save userimack/a08461f81069a9fe946a32fbd0a69060 to your computer and use it in GitHub Desktop.
Save userimack/a08461f81069a9fe946a32fbd0a69060 to your computer and use it in GitHub Desktop.
To make your iex console look Fancy 🆒
Application.put_env(:elixir, :ansi_enabled, true)
IEx.configure(
colors: [
eval_result: [:cyan, :bright] ,
eval_error: [[:red, :bright, "\n▶▶▶\n"]],
eval_info: [:yellow, :bright ],
],
default_prompt: [
"\e[G", # cursor ⇒ column 1
:blue, "%prefix", :yellow, "|", :blue, "%counter", " ", :yellow, "▶", :reset
] |> IO.ANSI.format |> IO.chardata_to_string
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment