In iex, I'd like to break out of a block using #iex:break
, but I find that annoying to type. Can it be aliased? Preferably, I'd be able to save this in my user's .iex.exs
file for future use.
As can be seen in the source code, #iex:break
is hardcoded in IEx.Evaluator
and therefore cannot be neither substituted nor aliased.
That is probably because the shorter breaker would have many false positives in the elixir code.
The only possibility would be to patch IEx.Evaluator
code and compile elixir yourself.