jwfearn
jwfearn

Reputation: 29627

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?

Upvotes: 11

Views: 436

Answers (2)

jwfearn
jwfearn

Reputation: 29627

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

Upvotes: 3

michalmuskala
michalmuskala

Reputation: 11288

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

Upvotes: 12

Related Questions