If you're changing environments a lot it's easy to make mistakes where you think you're in one environment but you're actually in another. It would be nice if there were a startup option that would change the Julia prompt to include the current active environment, so it would look like this:
(@v1.4) julia>
or this:
(Example.jl) julia>
julia> using Pkg
julia> Base.active_repl.interface.modes[1].prompt = () -> string(Pkg.REPLMode.promptf()[1:end-5], "julia> ");
(@v1.4) julia> 1+1
2
(@v1.4) pkg> activate Foo
Activating new environment at `~/Documents/JuliaPkgs/TOMLX.jl/Foo/Project.toml`
(Foo) julia> 1+1
2
Beautiful API ;)
Most helpful comment
Beautiful API ;)