Created
February 17, 2017 00:52
-
-
Save blackode/5728517116d7a4d08f0a4faddd8c145a to your computer and use it in GitHub Desktop.
iex> Customization
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
# IEx.configure colors: [enabled: true] | |
# IEx.configure colors: [ eval_result: [ :cyan, :bright ] ] | |
IO.puts IO.ANSI.red_background() <> IO.ANSI.white() <> " ❄❄❄ Good Luck with Elixir ❄❄❄ " <> IO.ANSI.reset | |
Application.put_env(:elixir, :ansi_enabled, true) | |
IEx.configure( | |
colors: [ | |
eval_result: [:green, :bright] , | |
eval_error: [[:red,:bright,"Bug Bug ..!!"]], | |
eval_info: [:yellow, :bright ], | |
], | |
default_prompt: [ | |
"\e[G", # ANSI CHA, move cursor to column 1 | |
:white, | |
"I", | |
:red, | |
"❤" , # plain string | |
:green, | |
"%prefix",:white,"|", | |
:blue, | |
"%counter", | |
:white, | |
"|", | |
:red, | |
"▶" , # plain string | |
:white, | |
"▶▶" , # plain string | |
# ❤ ❤-»" , # plain string | |
: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