This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-02
Channels
- # babashka (37)
- # beginners (19)
- # calva (5)
- # cider (14)
- # clojure (21)
- # clojure-europe (2)
- # clojurescript (16)
- # conjure (11)
- # datalog (78)
- # deps-new (3)
- # gratitude (2)
- # introduce-yourself (1)
- # joker (1)
- # jvm (4)
- # lsp (17)
- # malli (5)
- # meander (6)
- # minecraft (3)
- # off-topic (17)
- # other-languages (25)
- # practicalli (1)
- # quil (12)
- # reveal (6)
- # spacemacs (19)
happy new year! is it absolutely impossible to run cd
during a bb script? my goal involving cloning a git repo & cd to cloned dir
no more after cd
, I wanted to have a quick script to clone a repo & cd to it right away
no in bash I could just cd
https://github.com/huygn/gh/blob/master/bash/gh.bash#L48
Hmm, that doesn't work for me.
#!/usr/bin/env bash
cd /tmp
borkdude@MBP2019 ~/Dropbox/dev/clojure/http-server (main) $ /tmp/foo
borkdude@MBP2019 ~/Dropbox/dev/clojure/http-server (main) $
But to answer your question, the bb way to do this would be to start a new shell using (shell {:dir "the-dir"} (System/getenv "SHELL"))
wait is this like tee?
oh wow will test this out, I got a case where I’m running something in CI and the job is silent for up to 10 minutes, I would rather have output in that time 😄
It's not like tee, but the output is just displayed in real time, not captured into a string
yea its like streaming the output from that process to the main process you're running bb
had it working https://github.com/huygn/gh/blob/master/src/gh/main.clj thanks! now making it globally runnable in my machine, currently using uberscript & a small bash function to source it
can I download the executable for windows somewhere? (don't have windows so don't have scoop)
It’s for my primes sieving. I need to create a docker file that can run the various babashka implementations of the sieve.
right. I think --init usage is pretty rare, so when people do use it, I'm interested as to why