[Olical/conjure] Issue opened by frenchy64
Automatic babashka nrepl jack-in is working on develop! https://asciinema.org/a/415758 you can configure it to start any kind of nREPL, see the help text for more info if you need that.
You can basically open any .clj and evaluate immediately now.
(if it's supported within bb)
Oh man. That's exciting!
One could add something like my vims
(mnemonic: "vim scratch") function to their bashrc and use it to easily open a throwaway .clj file in /tmp and experiment right away with Conjure via bb.
vims() {
local ext="${1-adoc}"
vim "/tmp/scratch-$(date '+%Y%m%d%H%M%S').$ext"
}
# usage:
# vims # opens /tmp/scratch-20210523115453.adoc in Neovim
# vims clj # opens /tmp/scratch-20210523115523.clj in Neovim
Thanks!!! stolen!
I actually use Fish shell -- I translated it to Bash above because I figured it would be helpful for a larger group of people 🙂 Here's the Fish version that I actually use, for those of us who might be using Fish:
function vims
set -l ext "adoc"
if test (count $argv) -gt 0
set ext $argv[1]
end
vim /tmp/scratch-(date '+%Y%m%d%H%M%S').$ext
end
A slight variation on the theme
function vimbb() {
vim $(mktemp --suffix=".clj")
}
you should have mktemp
on your OS too 🙂
this should work too
vims() {
vim $(mktemp --suffix=${1:-.adoc})
}
Just tried out the bb auto nrepl
pretty awesome 😉
[Olical/conjure] Issue closed by frenchy64