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

docs: Improve discoverability of atreplinit (mention it in Manual>"Command-line Interface">"Startup file") #44103

Merged
merged 3 commits into from
May 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Manual: mention atreplinit near startup.jl
  • Loading branch information
tfiers authored and KristofferC committed May 11, 2022
commit af3b05b3988eef856b74be305d4cb4f5befa5a2d
10 changes: 10 additions & 0 deletions doc/src/manual/command-line-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ Note that although you should have a `~/.julia` directory once you've run Julia
first time, you may need to create the `~/.julia/config` folder and the
`~/.julia/config/startup.jl` file if you use it.

To have startup code run only in [The Julia REPL] (and not when `julia` is *e.g.* run
on a script), use [`atreplinit`](@ref) in `startup.jl`:

```julia
atreplinit() do repl
# ...
end
```


## Command-line switches for Julia

There are various ways to run Julia code and provide options, similar to those available for the
Expand Down