Created
October 16, 2018 09:01
-
-
Save jeroenvandijk/0a3368323599ec9acfdb19a4127434b9 to your computer and use it in GitHub Desktop.
Example ~/.closhrc file
This file contains hidden or 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
;; 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