# Julia running in Git bash in Atom

**URL:** <https://discourse.julialang.org/t/julia-running-in-git-bash-in-atom/25338>\
**Category:** Juno\
**Created:** [June 16, 2019, 2:41am UTC](https://discourse.julialang.org/t/julia-running-in-git-bash-in-atom/25338 "2019-06-16T02:41:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [June 16, 2019, 2:41am UTC](https://discourse.julialang.org/t/julia-running-in-git-bash-in-atom/25338/1 "2019-06-16T02:41:09Z")

</div>

The dysfunctional “shell” under Windows is a persistent pain point for me.  
I asked for Julia to be started in the Git bash, but apparently that is too tricky.

It is good to have an idle half-an-hour :). I have something now that almost works.  
An ugly hack? Perhaps. But it works to a large degree. In the Julia console in Atom, run

```julia
run(`"C:\\Program Files\\Git\\bin\\bash.exe" -exec julia`)

```

![image](https://global.discourse-cdn.com/julialang/original/3X/4/c/4ccddf15efa72f25a326b6a00d8c508f2ebd8a35.png)

Now for the “large degree”: I get a functional Julia, but “Run block” or “Run file” do not work anymore ☹ I guess those commands still try to communicate with the underlying Julia running in the “cmd”? Would it be possible to communicate instead with the Julia I just started in the bash?

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [June 16, 2019, 4:01am UTC](https://discourse.julialang.org/t/julia-running-in-git-bash-in-atom/25338/2 "2019-06-16T04:01:52Z")

</div>

I tried again the suggestion of @pfitzseb ([https://github.com/JunoLab/atom-julia-client/issues/527](https://github.com/JunoLab/atom-julia-client/issues/527)), and this time it worked (I don’t know why, but previously I couldn’t get it to work. My fault, I’m sure.).

This is the solution: ignore the above naïve and clumsy attempt please.

Simply start Atom in the Git bash. That takes care of Julia starting in the bash automatically. And, at least so far, everything works: “Run block”, “Run file”, …

---

<div class="post-metadata">

**Author:** ![klaff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/klaff/32/7637_2.png) [@klaff](https://discourse.julialang.org/u/klaff)\
**Post date:** [February 25, 2020, 6:24pm UTC](https://discourse.julialang.org/t/julia-running-in-git-bash-in-atom/25338/3 "2020-02-25T18:24:16Z")

</div>

Does this still work for you?

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [February 25, 2020, 10:41pm UTC](https://discourse.julialang.org/t/julia-running-in-git-bash-in-atom/25338/4 "2020-02-25T22:41:11Z")

</div>

Last time I checked it was still working fine.
