Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I customize Elixir iex to exit with ctrl-D?

I know several ways to quit iex but I'd love to use ctrl-D like in other REPLs (e.g., node, irb.)

How can I customize iex to do this?

like image 500
jwfearn Avatar asked Jun 20 '16 17:06

jwfearn


2 Answers

As far as I know, this is not possible right now. IEx operations support comes directly from the Erlang shell, and this is not implemented in Erlang.

Most probably it won't be ever implemented either - this change was already proposed and rejected: https://github.com/erlang/otp/pull/983

like image 166
michalmuskala Avatar answered Sep 27 '22 22:09

michalmuskala


Not possible AKAIK, but one can use ctrl-\ to exit Iex and Erl.

like image 29
jwfearn Avatar answered Sep 27 '22 21:09

jwfearn