Startup.jl not loading

Running julia from the terminal (Mac), doesn’t seem to read startup.jl. Below I confirm that the startup file exists in the correct place, I think. Can someone spot what I’m doing wrong?

Thanks!

[~]$ cat .julia/config/startup.jl
if isinteractive()
    try
        using OhMyREPL
        @info "using OhMyREPL"
    catch
        @warn "OhMyREPL not installed"
    end
    try
        using Revise
        @info "using Revise"
    catch
        @warn "Revise not installed"
    end
end
[~]$ which julia
/usr/local/bin/julia
[~]$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.2.0 (2019-08-20)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> isinteractive()
true

isinteractive() is false when loading startup.jl (by default)

1 Like

For current and future reference, this seems to have been silently (as in without a NEWS mention) changed with Julia 1.8. Related issue, PR. So isinteractive() returns true in startup.jl now.