ahendriksen / ob-tmux

Ob-tmux is an Emacs library that allows org mode to evaluate code blocks in a tmux session.
85 stars 12 forks source link

What should I set the terminal to on macOS? #13

Open NightMachinery opened 3 years ago

NightMachinery commented 3 years ago

There is no xterm on macOS.

harizvi commented 3 years ago

Late response, hopefully you've found the answer but for anyone else looking.

You should set the terminal variable to point to an executable that will take command line options. The Mac Terminal (built-in) doesn't have that capability, or at least I haven't seen it mentioned anywhere. Alternatively, you can use iterm or alacritty. I've the following settings:

(org-babel-tmux-terminal "alacritty") (org-babel-tmux-terminal-opts '("-t" "ob-tmux" "-e"))

For iterm, you have to point to the executable inside the application package (/Applications/iTerm.app/Contents/MacOS/iTerm2).

ahendriksen commented 3 years ago

Happy to see that you got it to work!

Thank you for sharing your solution!

On 7 Jul 2021, at 21:54, Haider Rizvi @.***> wrote:

 Late response, hopefully you've found the answer but for anyone else looking.

You should set the terminal variable to point to an executable that will take command line options. The Mac Terminal (built-in) doesn't have that capability, or at least I haven't seen it mentioned anywhere. Alternatively, you can use iterm or alacritty. I've the following settings:

(org-babel-tmux-terminal "alacritty") (org-babel-tmux-terminal-opts '("-t" "ob-tmux" "-e"))

For iterm, you have to point to the executable inside the application package (/Applications/iTerm.app/Contents/MacOS/iTerm2).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

harizvi commented 3 years ago

Allard,

This is just the basic setup, thought I'll share how I've setup.

Controlling a remote tmux issue is still there, I shared more info with the permissions setup over there.