Merge pull request #9549 from zmstone/1214-chore-update-erl-shell-prompt
refactor: change ce | ee to v | prefix for shell prompt
This commit is contained in:
commit
d2cc7d3258
|
@ -45,10 +45,14 @@ set_prompt_func() ->
|
||||||
prompt_func(PropList) ->
|
prompt_func(PropList) ->
|
||||||
Line = proplists:get_value(history, PropList, 1),
|
Line = proplists:get_value(history, PropList, 1),
|
||||||
Version = emqx_release:version(),
|
Version = emqx_release:version(),
|
||||||
Edition = emqx_release:edition(),
|
Prefix =
|
||||||
|
case emqx_release:edition() of
|
||||||
|
ce -> "v";
|
||||||
|
ee -> "e"
|
||||||
|
end,
|
||||||
case is_alive() of
|
case is_alive() of
|
||||||
true -> io_lib:format(<<"~ts-~ts(~s)~w> ">>, [Edition, Version, node(), Line]);
|
true -> io_lib:format(<<"~ts~ts(~s)~w> ">>, [Prefix, Version, node(), Line]);
|
||||||
false -> io_lib:format(<<"~ts-~ts ~w> ">>, [Edition, Version, Line])
|
false -> io_lib:format(<<"~ts~ts ~w> ">>, [Prefix, Version, Line])
|
||||||
end.
|
end.
|
||||||
|
|
||||||
local_allowed(MF, Args, State) ->
|
local_allowed(MF, Args, State) ->
|
||||||
|
|
Loading…
Reference in New Issue