Open
Description
I think now with the preference system, it would be nice to configure julia itself withit per environment, e.g
- one may want to use
-J<path to system image>
per project environment - one may want to set
compile=min
or-O1
or other compiler flags for certain project while developing - one may want to disable/change the colors/number of threads etc. of Julia REPL without borthering the environment variables per project
- more fine tuned and structured color preference of the REPL, error message etc. with TOML (making whoever doesn't like the current color scheme happy)
not all of the above is achievable/convenient by messing up system environment variables, from user experience if we support the new configure system
one can:
- configure their julia configuration for each project within julia REPL (instead of learning shell script/windows environment variable) directly with Preferences.jl
- keep all the julia preferences in one file under
.julia
which is seperate with.bashrc
/.zshrc
etc. this will make it easier to migrate the same preference to cluster etc.
my proposed implementation is to support a special field like following
for Project.toml
[preferences.julia]
sysimage="min"
nthreads=16
[preferences.julia.color]
error="light_blue"
line_number="green"
for LocalPreference.toml
[julia]
sysimage="min"
nthreads=16
[julia.color]
error="light_blue"
line_number="green"
edit: I realize not all the options can be configured easily using the preference system since it seems to require loading stdlib TOML.jl first, which means things implemented in C won't be able to configured afterwards, but still would be nice to be able to configure things within REPL itself (even by restart REPL to activate the new configuration)
Metadata
Metadata
Assignees
Labels
No labels