Created
June 16, 2014 19:31
-
-
Save Aerlinger/d46bffa9021d3cf08f13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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