I think a better way would be to use atreplinit:
atreplinit() do repl
@eval using OhMyREPL
redirect_stderr(devnull) do
@eval using AbbreviatedStackTraces
end
end
This should make the REPL load faster and also make it work inside VS Code. Ref: issue #38