Thanks @borkdude for #babashka. 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 π
thanks a lot folks; I just wasted 2 hours making my prompt pretty π
now we want a screenshot :)
ohhhhhhhhhh that is soliddd
@michael403 would love to get a look at your dots!
@michael403 is the π© node? Lol
Looks great!
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 π
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.
@sludwig.dev 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 :^)
whats starship? I'm going to google it but i'm interested in "the pitch"
@sludwig.dev 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):
Okay, but that Clojure icon is pretty cute.
Is that coming from All the Icons?
Love the nord colorscheme always β€οΈ
@zane 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 see! Thanks!