To enable a per-directory startup file, I use the following code (which came from this list)
if chomp(readall(`pwd`)) != ENV["HOME"] if isfile("juliarc.jl") require("juliarc.jl") end end On Wed, Dec 23, 2015 at 9:53 PM, Ethan Anderes <ethanande...@gmail.com> wrote: > I can’t live without this… > > function paste() > include_string(clipboard()); > end > > Entering paste() at the REPL prompt evaluates whatever you just copied. I > find it extremely useful when copy-and-pasting largish blocks of code while > prototyping…especially since, without it, the evaluations can pass so fast > I’ll sometimes miss errors etc. > > On Wednesday, December 23, 2015 at 12:38:44 PM UTC-8, SundaraRaman R wrote: > > I'm a newbie to Julia and just today learnt that there's a .juliarc.jl >> initialization file. So I'm curious what sorts of things people use it for. >> >> Some DDG-ing and Googling only returned this gist: >> https://gist.github.com/Ismael-VC/6db0c310eaf04d0b0a1b in which at least >> the `separator()` function can be useful, and this tweet: >> https://twitter.com/Felipe_J_H/status/672465597075234816 that extends >> `display()`. >> (There's also a suggestion to use the rc file to modify DL_LOAD_PATH in >> the docs for Julia release 0.1 ( >> http://docs.julialang.org/en/release-0.1/manual/packages/) but not in >> the newer docs ( >> http://docs.julialang.org/en/release-0.4/manual/packages/).) >> >> What does your .juliarc.jl contain? >> >> > -- chris.p...@ieee.org