I work with multiple nim packages, and wrote a tiny shell script that turned
out to be very useful for me. I just thought I might share it here, if anyone
cares:
function niminstall {
if [[ -e ~/proj/nim/$1 ]]; then
pushd -q ~/proj/nim/$1
yes | nimble
For those interested: I plan to solve this in Nimble by implementing what is
described in this comment:
[https://github.com/nim-lang/nimble/issues/240#issuecomment-27708](https://github.com/nim-lang/nimble/issues/240#issuecomment-27708).
> Btw the yes program just spams "y" lines on stdo
@dom96 I already knew about the yes tool, and thought it would finally be a
good use case. But aparently for this specific use case there was already a
solution that did not require a yes tool installed.