gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
22.01k stars 3.37k forks source link

Architecture is i386 inside tmux on a M1 Mac #537

Closed koichirose closed 2 years ago

koichirose commented 2 years ago

Running arch inside tmux returns i386 instead of arm64. This only happens if I use the .tmux.conf from this repo, so I found out that removing this fixes the issue: https://github.com/gpakosz/.tmux/blob/master/.tmux.conf#L1450

I'm not sure what it does. $default_shell in my case is /bin/zsh

gpakosz commented 2 years ago

Hello @koichirose 👋

The line you're mentioning is only executed when reattach-to-user-namespace is installed.

Can you please paste the output of

$ command -v reattach-to-user-namespace

With modern macOS and tmux, there's no need to use thisreattach-to-user-namespace anymore. Just uninstall it.

koichirose commented 2 years ago

Confirmed, I removed reattach-to-user-namespace and now the arch command correctly returns amd64. Thank you very much!

gpakosz commented 2 years ago

Now I'm curious!

Did you freshly install reattach-to-user-namespace on a M1 Mac? Why? Did README.md make you believe you needed it?

koichirose commented 2 years ago

I did not! I migrated from my previous Intel Mac. But yes, this would make me believe that it is needed: https://github.com/gpakosz/.tmux/blob/master/README.md?plain=1#L115 Plus the whole section below about installing reattach-to-user-namespace

gpakosz commented 2 years ago

I see. I'll revisit README.md.

Happy tmuxing!