Skip to content

Instantly share code, notes, and snippets.

@jeroenvandijk
Created October 16, 2018 09:01
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 jeroenvandijk/0a3368323599ec9acfdb19a4127434b9 to your computer and use it in GitHub Desktop.
Save jeroenvandijk/0a3368323599ec9acfdb19a4127434b9 to your computer and use it in GitHub Desktop.
Example ~/.closhrc file
;; See https://github.com/dundalek/closh/
(defn eval-string [s]
(eval (clojure.edn/read-string
(str "(do" s ")"))))
(defn closhrc []
(slurp (str (getenv "HOME") "/.closhrc")))
(defn eclosh []
(eval-string (closhrc)))
(defn closh-prompt []
"$ "
)
(println "CloshRC loaded")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment