10

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?

Community
  • 1
  • 1
jwfearn
  • 28,781
  • 28
  • 95
  • 122

2 Answers2

11

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

michalmuskala
  • 11,028
  • 2
  • 36
  • 47
  • thanks for the link! I don't (yet) follow the reasoning behind the "no ctrl-D" decision but it's good to know that it's intentional. Customizing `iex` to exit on ctrl-D may not be wise but I'm still curious if it's possible. – jwfearn Jun 21 '16 at 15:51
2

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

jwfearn
  • 28,781
  • 28
  • 95
  • 122