Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs with new startup.jl file and location #26215

Closed
dlfivefifty opened this issue Feb 26, 2018 · 6 comments
Closed

Update docs with new startup.jl file and location #26215

dlfivefifty opened this issue Feb 26, 2018 · 6 comments
Labels
docs This change adds or pertains to documentation

Comments

@dlfivefifty
Copy link
Contributor

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> 
@mbauman
Copy link
Member

mbauman commented Feb 26, 2018

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

@mbauman mbauman closed this as completed Feb 26, 2018
@dlfivefifty
Copy link
Contributor Author

Updating the docs would help too

@mbauman
Copy link
Member

mbauman commented Feb 26, 2018

$ 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

@mbauman mbauman reopened this Feb 26, 2018
@mbauman mbauman added the docs This change adds or pertains to documentation label Feb 26, 2018
@mbauman mbauman changed the title ~/.juliarc.jl not loading on master Update docs with new startup.jl file and location Feb 26, 2018
@mbauman
Copy link
Member

mbauman commented Feb 26, 2018

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

$

@dlfivefifty
Copy link
Contributor Author

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

@fredrikekre
Copy link
Member

The latest docs are now updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

No branches or pull requests

3 participants