Julia: Update docs with new startup.jl file and location

Created on 26 Feb 2018  ·  6Comments  ·  Source: JuliaLang/julia

For some reason the .juliarc.jl file is not loading on master (but is in v0.6.2):

[solver-mbook:~] solver% cat .juliarc.jl 
println("hi")
[solver-mbook:~] solver% julia
hi
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.2 (2017-12-13 18:08 UTC)
 _/ |\__'_|_|_|\__'_|  |  
|__/                   |  x86_64-apple-darwin17.3.0

julia> 
[solver-mbook:~] solver% Projects/julia7/julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0-DEV.4390 (2018-02-26 07:59 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 79c7bdd9ec (0 days old master)
|__/                   |  x86_64-apple-darwin17.4.0

julia> 
doc

Most helpful comment

Updating the docs would help too

All 6 comments

It got moved to ~/.julia/config/startup.jl in #26161. It's in NEWS, but we could probably do to make a general announcement.

Updating the docs would help too

$ ack juliarc doc
doc/man/julia.1
80:Load ~/.juliarc.jl
192:.I ~/.juliarc.jl
197:.I /etc/julia/juliarc.jl

doc/src/manual/environment-variables.md
8:configuration file `.juliarc.jl` in the user's home directory to have
45:configuration file directory. Then Julia searches for a `juliarc.jl` file at
48:$JULIA_BINDIR/$SYSCONFDIR/julia/juliarc.jl
49:$JULIA_BINDIR/../etc/julia/juliarc.jl
52:by default (via `Base.load_juliarc()`).
65:/etc/julia/juliarc.jl

doc/src/manual/getting-started.md
83:If you have code that you want executed whenever Julia is run, you can put it in `~/.juliarc.jl`:
86:$ echo 'println("Greetings! 你好! 안녕하세요?")' > ~/.juliarc.jl
103: --startup-file={yes|no}   Load ~/.juliarc.jl

doc/src/manual/modules.md
194:Putting this statement in the file `~/.juliarc.jl` will extend [`LOAD_PATH`](@ref) on every Julia startup.

doc/src/manual/parallel-computing.md
224:Note that workers do not run a `.juliarc.jl` startup script, nor do they synchronize their global

doc/src/manual/workflow-tips.md
58:If you further add the following to your `.juliarc.jl` file

Whoops, I was on the wrong branch. It looks like this has been updated. Do you have any specific sections where you found it to be out of date?

$ ack juliarc doc

$

I just clicked on “latest” in the docs, probably it hasn’t been updated yet

The latest docs are now updated.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manor picture manor  ·  3Comments

wilburtownsend picture wilburtownsend  ·  3Comments

ararslan picture ararslan  ·  3Comments

helgee picture helgee  ·  3Comments

Keno picture Keno  ·  3Comments