Hacker News new | ask | show | jobs
by teamspirit 689 days ago
Will check it out. Personally been using aichat[0] for this.

It's interesting you say there's no need for a more complex language than bash something like this. Doesn't the need for jq/curl/perl argue the opposite?

[0] https://github.com/sigoden/aichat

2 comments

Indeed. That's why I list them as limitations. My original idea was to get everything done with Bash. This is however not feasible as the reasons listed. Maybe I can get rid of jq and perl using awk, but that would sacrifice a lot of simplicity and readablity of the code.

I think implementing the syntax highlighter is the bottom line of my insist. I would prefer not to write anything more complex than that with Bash. They will be either not supported, or supported via external plugins.

Second aichat. Super good. For Linux I created a little bash script that downloads the latest binary and unzips it into /home/me/bin