# Julia usage with tmux or screen on Mac

**URL:** <https://discourse.julialang.org/t/julia-usage-with-tmux-or-screen-on-mac/2076>\
**Category:** General Usage\
**Tags:** question\
**Created:** [February 13, 2017, 12:36pm UTC](https://discourse.julialang.org/t/julia-usage-with-tmux-or-screen-on-mac/2076 "2017-02-13T12:36:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![peregrinrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peregrinrm/32/6441_2.png) [@peregrinrm](https://discourse.julialang.org/u/peregrinrm)\
**Post date:** [February 13, 2017, 12:36pm UTC](https://discourse.julialang.org/t/julia-usage-with-tmux-or-screen-on-mac/2076/1 "2017-02-13T12:36:44Z")

</div>

Hi there.

I want to run the repl in a tmux window but whenever I start julia, it starts on a new terminal window. This only happens for me on Mac OS (my actual version is 10.11.16). On a linux VM it works (julia command does not open another terminal window).

Is there a way to change this behavior? (from the command line, for instance)

TIA

Rodrigo

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [February 13, 2017, 1:00pm UTC](https://discourse.julialang.org/t/julia-usage-with-tmux-or-screen-on-mac/2076/2 "2017-02-13T13:00:55Z")

</div>

You can just open whatever terminal program you want and run `julia` from there.

For this to work, however, `julia` needs to be in your path. The `julia` executable lives in `/Applications/Julia-0.5.app/Contents/Resources/julia/bin` (assuming you have installed `Julia-0.5` into your `Applications` folder). You can either add this directory to your path or e.g. put a link to it in another directory that is in your path, e.g `ln -s /Applications/Julia-0.5.app/Contents/Resources/julia/bin/julia /usr/local/bin` to put a `julia` link into `/usr/local/bin`.

---

<div class="post-metadata">

**Author:** ![peregrinrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peregrinrm/32/6441_2.png) [@peregrinrm](https://discourse.julialang.org/u/peregrinrm)\
**Post date:** [February 13, 2017, 1:35pm UTC](https://discourse.julialang.org/t/julia-usage-with-tmux-or-screen-on-mac/2076/3 "2017-02-13T13:35:50Z")

</div>

Thanks, but that isn’t it. I can run julia just fine (it is on the path), and in linux it works, but in mac os whenever I run julia from the terminal, it opens a new terminal window.

I just want it to run in the same terminal window in mac os (that way, tmux and screen can capture its output).

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [February 13, 2017, 3:02pm UTC](https://discourse.julialang.org/t/julia-usage-with-tmux-or-screen-on-mac/2076/4 "2017-02-13T15:02:37Z")

</div>

The binary in Contents/MacOS/julia is a wrapper script. As mentioned, you need to run _the version under bin/_ to avoid the new terminal. (there are several open issues about why, but I’m on my phone atm)

---

<div class="post-metadata">

**Author:** ![peregrinrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peregrinrm/32/6441_2.png) [@peregrinrm](https://discourse.julialang.org/u/peregrinrm)\
**Post date:** [February 13, 2017, 3:57pm UTC](https://discourse.julialang.org/t/julia-usage-with-tmux-or-screen-on-mac/2076/5 "2017-02-13T15:57:43Z")

</div>

Thanks! That did it! I did not pay close attention to the previous answer.
