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

**URL:** <https://meta.discourse.org/t/stuck-in-infinite-loop-in-mac-terminal-after-source-bashrc/118505>\
**Category:** Support\
**Created:** [May 23, 2019, 12:42pm UTC](https://meta.discourse.org/t/stuck-in-infinite-loop-in-mac-terminal-after-source-bashrc/118505 "2019-05-23T12:42:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jameshahnii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jameshahnii/32/108982_2.png) [@jameshahnii](https://meta.discourse.org/u/jameshahnii)\
**Post date:** [May 23, 2019, 12:42pm UTC](https://meta.discourse.org/t/stuck-in-infinite-loop-in-mac-terminal-after-source-bashrc/118505/1 "2019-05-23T12:42:41Z")

</div>

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](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-macos-for-development/15772) 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.

 ![bashrc](https://global.discourse-cdn.com/meta/original/3X/5/4/54802b627661fab12711d65e0370e27d64a3444c.gif)

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

---

_[View the full topic](https://meta.discourse.org/t/stuck-in-infinite-loop-in-mac-terminal-after-source-bashrc/118505)._
