gpakosz / .tmux

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

Variables not rendering #532

Closed mattboy9921 closed 2 years ago

mattboy9921 commented 2 years ago

I just tried to pull the latest changes (first time doing this for .tmux), but any variable I try to show in my status bar is missing.

image

I've confirmed I have the correct $TERM variable set in my .bashrc, nothing has changed but pulling changes. I even deleted everything and started from scratch with the same results.

I'm running Ubuntu 18.04.6, latest updates.

gpakosz commented 2 years ago

Hello @mattboy9921 👋

Can you please reload the configuration with <prefix> + r?

mattboy9921 commented 2 years ago

Hi @gpakosz

I just tried that and am still no luck. I am able to change other things, like adding a new section. Any literal text will show but not variables.

gpakosz commented 2 years ago

@mattboy9921 isn't it because you're using what we discussed in #515?

If yes, try using the most recent version of the script I gave in #515 (I remember having edited it to accommodate for implementation changes in Oh my tmux!)

mattboy9921 commented 2 years ago

@gpakosz I did just try the script, but it just gives a blank section with no text in it. Regardless of what I put, any variables seem to just not show. It's like they're invisible. And the far right one shows as %0 or %1.

Edit: Right now I am using a completely stock configuration. I deleted every file, cloned fresh and this is happening still.

Edit 2: I just created a new user to test with to see if anything else is screwing it up but the test user has the same issue. Nothing is showing.

gpakosz commented 2 years ago

Found the problem.

In the meantime please use commit df46ab2ba97d7022cfe15d16a59baf3156b299b8

mattboy9921 commented 2 years ago

Can confirm, df46ab2ba97d7022cfe15d16a59baf3156b299b8 is working for me.

gpakosz commented 2 years ago

I pushed a fix in the gh-532 branch

mattboy9921 commented 2 years ago

Using gh-532, all the variables seem to work. I am testing the #{uptime_ssh #{pane_pid} #{pane_tty}} but it's just showing 0h 0m 0s the whole time.

gpakosz commented 2 years ago

@mattboy9921 Can we please finish making sure the stock config is working before reopening #515 if the custom #{uptime_ssh} function doesn't work anymore?

I see in your original screenshot that uptime values for current host don't work

mattboy9921 commented 2 years ago

@gpakosz The stock config is working as far as I can tell. The regular uptime variable for current host is working as it should as is everything else.

gpakosz commented 2 years ago

@mattboy9921 Cool let's go back to #515 for #{uptime_ssh}