Skip to content

Commit

Permalink
load if julia started with -i (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfitzseb authored and KristofferC committed Nov 29, 2017
1 parent 2284222 commit ad48753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OhMyREPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ showpasses(io::IO = STDOUT) = Base.show(io, PASS_HANDLER)
function __init__()
options = Base.JLOptions()
# command-line
if (options.eval != C_NULL) || (options.print != C_NULL)
if (options.isinteractive != 1) && ((options.eval != C_NULL) || (options.print != C_NULL))
return
end

Expand Down

0 comments on commit ad48753

Please sign in to comment.