Skip to content

Instantly share code, notes, and snippets.

@affans
Created July 29, 2019 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save affans/0d20f9fca1fa80f904365ba14b63af5d to your computer and use it in GitHub Desktop.
Save affans/0d20f9fca1fa80f904365ba14b63af5d to your computer and use it in GitHub Desktop.
My Julia `startup.jl`
## push local working path for all code.
push!(LOAD_PATH, "$(homedir())/Documents/Repository")
## load packages
using BenchmarkTools
using Logging
# remove from production
logger = SimpleLogger(stdout, Logging.Debug)
global_logger(logger)
@info "Debug Logging is on for this session."
# ensure that every Julia session uses Revise
atreplinit() do repl
try
@eval using Revise
@async Revise.wait_steal_repl_backend()
catch
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment