Created
April 6, 2020 18:14
-
-
Save blackode/9195f94a400ba68721af86b550f6ceea to your computer and use it in GitHub Desktop.
IEx default and continuation prompt
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( | |
# This will display when we enter multi lines of code. I used 4 empty spaces. | |
# If you need you can update it with the unicode symbols you like | |
continuation_prompt: " ", | |
default_prompt: | |
[ | |
# ANSI CHA, move cursor to column 1 | |
"\e[G", | |
# This is default prefix like iex | |
# "%prefix", | |
# custom symbols if you need play with them | |
# "i👽x", "❯", ">", | |
:yellow, | |
# counter which helps us to reuse the previous results using v(counter) | |
"%counter. ", | |
:magenta, | |
# custome elixir symbol; I used "". You can update at the beginnning of | |
# this config | |
elixir_icon, | |
# this will reset previous color | |
: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