Dynamic REPL prompt?

This should work then:

using Dates
input_prompt() = "julia-" * string(Dates.now()) * ">"
try 
    using OhMyREPL
catch e
    @warn e
end

atreplinit() do repl
  isdefined(@__MODULE__(), :OhMyREPL) ? OhMyREPL.input_prompt!(input_prompt) : nothing
end

e.g. just separating the try into it’s own block.