Browse Source

[julia] Update startup.jl to define REPL as local variable.

master
Fredrik Ekre 3 years ago
parent
commit
381941e478
  1. 2
      .julia/config/startup.jl

2
.julia/config/startup.jl

@ -1,5 +1,5 @@
if Base.isinteractive() && if Base.isinteractive() &&
(REPL = get(Base.loaded_modules, Base.PkgId(Base.UUID("3fa0cd96-eef1-5676-8a61-b3b8758bbffb"), "REPL"), nothing); REPL !== nothing) (local REPL = get(Base.loaded_modules, Base.PkgId(Base.UUID("3fa0cd96-eef1-5676-8a61-b3b8758bbffb"), "REPL"), nothing); REPL !== nothing)
# Exit Julia with :q # Exit Julia with :q
pushfirst!(REPL.repl_ast_transforms, function(ast::Union{Expr,Nothing}) pushfirst!(REPL.repl_ast_transforms, function(ast::Union{Expr,Nothing})

Loading…
Cancel
Save