Live data from Hacker News

Using ChatGPT to make Bash palatable

brev.dev

1–10 of 148 posts

Re: Using ChatGPT to make Bash palatable

#4
post #3

It's semi-replaced Google and StackOverflow for me. It's like having an interactive rubber duck https://en.wikipedia.org/wiki/Rubber_duck_debugging

I try to use it like this sometimes but then I realise I now have two problems. I have to debug my own code and its code.

Re: Using ChatGPT to make Bash palatable

#6
ChatGPT has been amazing for all kinds of programming-adjacent things, even in my line of work where I asked it for help modifying the config file for a selfhosted gitlab instance.

> But [Bash] fucking sucks. Like, it’s truly awful to write [...]

As an aside, considering how basic the shell script actually was, I think this is a great example of being so intimidated by something that you don't actually try and use it - until you do, and discover it wasn't actually that bad. The hardest part was just discovering the incantations for interacting with Chrome - which was a fantastic demo of the power of ChatGPT.

Re: Using ChatGPT to make Bash palatable

#7
post #3

It's semi-replaced Google and StackOverflow for me. It's like having an interactive rubber duck https://en.wikipedia.org/wiki/Rubber_duck_debugging

I try to use it like this sometimes but then I realise I now have two problems. I have to debug my own code and its code.

it can usually debug itself if you give it an error message

Re: Using ChatGPT to make Bash palatable

#10
This is an awesome walkthrough and gets me thinking about all the other automation tasks I could get done with ChatGPT-driven bash scripts... can take this same approach to context switching for actual apps. For ex: "dev" branch can open up vscode, terminal windows, linear, server logs, etc, while "marketing" branch can open up slack, chrome (to email), twitter, notion, etc
Post reply on HN