This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-31
Channels
- # aleph (37)
- # babashka (23)
- # beginners (46)
- # calva (1)
- # catalyst (12)
- # cider (3)
- # circleci (5)
- # clj-kondo (8)
- # clojure (188)
- # clojure-europe (28)
- # clojure-nl (1)
- # clojure-norway (84)
- # clojure-sweden (2)
- # clojure-uk (1)
- # clojurescript (6)
- # clr (1)
- # cursive (4)
- # datahike (4)
- # datascript (7)
- # datomic (31)
- # deps-new (16)
- # emacs (4)
- # fulcro (4)
- # gratitude (17)
- # hyperfiddle (24)
- # introduce-yourself (4)
- # jobs (5)
- # off-topic (84)
- # pathom (10)
- # polylith (21)
- # portal (6)
- # re-frame (6)
- # reitit (4)
- # releases (1)
- # sci (74)
- # specter (3)
- # tools-build (3)
- # tools-deps (5)
Thanks @borkdude for #CLX41ASCS. I use a shell prompt called Starship, and one of the cool things it can do is show you the version of, for example, Java when you are in a project directory. I wanted to add a custom prompt segment to show the Clojure version. After struggling with awk for a while, I finally figured out how to parse the project deps.edn for the Clojure version, but soon discovered it might not always be listed there and there's really three different deps.edn files to check. My heart sank because I have no idea how to do all those tests with shell scripting. And then I remembered hearing about babashka and it took all of five minutes to do the job 😄


ohhh i use starship too, do you have that in a repo you could link? I've actually done very little customization of it myself 😅
I’m coming late to the babashka party. Thanks @borkdude for extending Clojure’s reach. Once weaned, I doubt I’ll miss zsh.
@U0482NW9KL1 not in a repo yet, but that's probably a good idea. I'll put it somewhere and share a link here later
nice sickkk :^)
@U0482NW9KL1 don't get too excited, it's not that fancy 😄 https://github.com/jbullers/starship_configs
How my prompt looks (the theme is Nord, if you're interested):
@U050CT4HR I found the icon by searching "clojure" on https://www.nerdfonts.com/cheat-sheet
My terminal font is intellij mono, patched by nerd fonts so it handles all kinds of special characters
I need to get some actual work done today, but I'll try to throw a repo together in the next couple days. yep; I loathe node 😛