Long story short, huge domain name, non erlang users. Want to shrink down the width of the prompt as it’s making it difficult for users to enter commands and I’m trying to make the experience as pleasant as possible for them.
I can run the following in IEx and get rid of the hostname info:
Application.put_all_env(
iex: [
inspect: [pretty: true],
alive_prompt: "%counter>",
history_size: 20,
colors: [],
default_prompt: "%counter)>"
]
)
I’ve tried adding similar commands into runtime.exs, well that and :
config :iex,
inspect: [pretty: true],
alive_prompt: "%counter>",
history_size: 20,
colors: [],
default_prompt: "%counter)>"
But in both cases, crash at startup with the following kind of message:
ERROR! Config provider Config.Reader failed with:
** (exit) exited in: GenServer.call(IEx.Config, {:update, {IEx.Config, :handle_configure, [[alive_prompt: "%counter>"]]}}, 5000)
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Wonder what the idiomatic approach to this would be?