Skip to content

Instantly share code, notes, and snippets.

@Aerlinger
Created June 16, 2014 19:31
Show Gist options
  • Save Aerlinger/d46bffa9021d3cf08f13 to your computer and use it in GitHub Desktop.
Save Aerlinger/d46bffa9021d3cf08f13 to your computer and use it in GitHub Desktop.
function loadrc(path::String)
if (path == ENV["HOME"] || path == "/")
return ""
end
loadrc(dirname(path))
juliarc = joinpath(path, ".juliarc.jl")
println(juliarc)
if isfile(juliarc)
println("Loading config file:", juliarc)
include(juliarc)
end
end
loadrc(pwd())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment