This is my personal Julia configuration. It has grown far beyond my wildest imagination.
julia --startup-file=no -e 'using Pkg; Pkg.add(url="https://git.tecosaur.net/tec/Setup.jl.git"); using Setup; Setup.install()'
Instead of loading packages whose functionality might be needed at some point, load them on-demand. Lazy loading for the win!
The following packages are currently supported:
- The standard library (
Get a sense of a function or structure with the
a as a shorthand for
Easier temp environments
-t as a shorthand for
--temp, with the activate change this means opening a
temporary environment is now a bit quicker:
pkg> a -t
pkg> activate --temp
Load and unload named environments with the new
pkg> (un)stack set of commands.
For more easily running ~Cmd~s, we now have the following syntactic puns.
~ `cmd` # read to string ! `cmd` # print output !~ `cmd` # read and print output `a` | `b` # pipe commands
Thanks to package extensions, it's fairly straightforward to bundle per-package customisation code. Currently this covers the following:
- Setting the Makie theme based on the terminal colours when loading
- Pushing the
- Changing the
- Load an appropriate
OhMyREPLtheme on startup
- Add pretty colour show methods for