Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hostname plugin not working on MacOS #118

Open
quiquecmtt opened this issue Jan 24, 2025 · 0 comments
Open

Hostname plugin not working on MacOS #118

quiquecmtt opened this issue Jan 24, 2025 · 0 comments

Comments

@quiquecmtt
Copy link

Describe the issue
The hostname plugin doesn't work on MacOS, leaving a @ and a blank space beside the session name.

To Reproduce
Steps to reproduce the issue:

  1. Install theme through TPM
  2. Set @tokyo-night-tmux_show_hostname to 1
  3. Reload TMUX config
  4. See error

Screenshots
Here you can see the error
Image

Environment (please complete the following information):

  • OS: [e.g. Ubuntu 20.04]: MacOS 15.1.1 (24B91)
  • terminal [e.g. kitty, alacritty]: GhosTTY 1.0.1
  • tmux version [e.g. 3.3a]: 3.5a
  • tokyo-night-tmux branch [e.g. master, next, legacy]: master (d610ced)

Additional context
I noticed your script src/hostname-widget.sh utilizes hostnamectl which isn't available on MacOS, may I suggest using the hostname command instead?
This command is already installed in Linux and MacOS by default, and it could be piped to awk so that only the hostname part is shown.

Image

This would be the change needed.

Image

I also tested these commands on a Debian Machine.

Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant