gpakosz / .tmux

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

#{hostname} shows PID instead of hostname on MacOS #615

Closed westhomas closed 1 year ago

westhomas commented 1 year ago

I recently updated to master and noticed the hostname was showing a number instead of my hostname in MacOS Ventura 13.1.

Screenshot 2023-01-04 at 10 04 25 AM

I moved backwards in the commit log until it started working again. Apparently, this commit is responsible:

https://github.com/gpakosz/.tmux/commit/18775e1

One commit before this and it works again:

Screenshot 2023-01-04 at 10 04 38 AM

I believe it's showing the PID based on what I see in that commit. However, I don't know why.

This seems to work fine on my Debian system.

gpakosz commented 1 year ago

Hello @westhomas 👋

westhomas commented 1 year ago

Reloading the config worked! Thank you!

But I'm curious why? I stopped the tmux session and restarted it multiple times. What does a "reload" do that restarting a tmux doesn't do?

gpakosz commented 1 year ago

What does a "reload" do that restarting a tmux doesn't do?

Likely you still had a tmux server process running because you had more than 1 session