Created
May 31, 2019 06:18
-
-
Save userimack/a08461f81069a9fe946a32fbd0a69060 to your computer and use it in GitHub Desktop.
To make your iex console look Fancy 🆒
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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