Stuck in infinite loop in Mac terminal after source ~/.bashrc

AI-generated summary

user1 is experiencing an infinite loop in their Mac terminal after running source ~/.bashrc while trying to set up Discourse development. They have tried following the Beginners Guide to Install Discourse on macOS for Development but keep running into issues.

@pfaffman suggests checking the .bashrc file for the cause of the loop, but since the file doesn’t seem to exist, they recommend using the Beginners Guide to Install Discourse for Development using Docker instead. jameshahnii finds this solution helpful.

Howdy, dipping back into Discourse development after a long divergence into learning Ember.js. As I’ve hacked away over the past few days trying to remember how I did all this back in August/September I’ve opened terminal to find a script running on what looked like an infinite loop.

Finally decided to go back to the Beginners Guide to Install Discourse on macOS for Development yesterday. Kept running into a brick wall so restored a back-up of my droplet and decided to start again in the morning.

Just opened terminal and had to ctrl+c again to stop the loop. Tried to ssh root and it threw another Permission denied so I decided to get Discourse going local again. I proceeded with…

  1. git clone https://github.com/discourse/discourse.git ~/discourse
  2. cd ~/discourse
  3. source ~/.bashrc

Step 3 kicked off the infinite loop I’ve seen the past few days. This is what it looks like.

Does anyone have a solution? I’d love to avoid deleting everything and starting over.

You’ll need to look in .bashrc and see what it’s doing.

Have all hidden files visible and it doesn’t seem to exist… which is puzzling.

If you can’t find .bashrc . . . wait. You don’t need to source .bashrc since it gets run when you log in.

I recommend that you punt on that and use Install Discourse for development using Docker.

Perfect. Thank you, sir!