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

#H interpolation doesn't work if not connected to ssh #18

Open
fitrh opened this issue Dec 30, 2020 · 4 comments
Open

#H interpolation doesn't work if not connected to ssh #18

fitrh opened this issue Dec 30, 2020 · 4 comments

Comments

@fitrh
Copy link

fitrh commented Dec 30, 2020

#U interpolation doesn't work, but other features like #H and #{pane_ssh_connected} works as expected

Configurations
OS : Arch Linux
TMUX : tmux 3.1c

@fitrh
Copy link
Author

fitrh commented Jan 2, 2021

Found the solution, i don't use any kind of tmux plugin manager and split my configuration into several files, including my status bar, it's become a problem if this plugin sourced before the status bar, but if source after the status bar, it works.

@fitrh fitrh closed this as completed Jan 2, 2021
@fitrh
Copy link
Author

fitrh commented Jan 2, 2021

But, there were still a problem remaining, the #H interpolation doesn't work if it's not connected to ssh.

@soyuka
Copy link
Owner

soyuka commented Jan 4, 2021

Feel free to help into patching this if you have a solution

@soyuka soyuka reopened this Jan 4, 2021
@soyuka soyuka changed the title #U interpolation doesn't work #H interpolation doesn't work if not connected to ssh Jan 4, 2021
@georgesamy
Copy link

@fitrh Hopefully not too late.

the #H interpolation doesn't work if it's not connected to ssh.

Had the same issue (also on Arch). Looked into the code, found in scripts/shared.sh:94 the library depends on command hostname to find the hostname in case of no opened ssh connection.

The problem for me was that I didn't have the command installed. On arch I installed hostname using sudo pacman -S inetutils and it now shows the current hostname in case there's no open ssh connection.

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

3 participants