Skip to content

Instantly share code, notes, and snippets.

@dexterous
Last active May 13, 2021 03: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 dexterous/280b84fde811d1fd38e91cd76cf7a9fd to your computer and use it in GitHub Desktop.
Save dexterous/280b84fde811d1fd38e91cd76cf7a9fd to your computer and use it in GitHub Desktop.
(->> (System/getProperties)
(filter #(clojure.string/ends-with? (key %) ".path"))
(map #(clojure.string/join "\n\t" (cons (key %) (clojure.string/split (val %) (re-pattern java.io.File/pathSeparator)))))
(clojure.string/join "\n\n")
(println))
System.properties.
findAll { k, _ -> k.endsWith('.path') }.
collect { k, v -> [k, *v.split(File.pathSeparator)].join('\n\t') }.
join('\n\n').
with{ println(it) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment