gpakosz / .tmux

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

Status bar not being updated #543

Closed Oliveiras closed 2 years ago

Oliveiras commented 2 years ago

No matter what I write on tmux_conf_theme_status_left and tmux_conf_theme_status_right, it's ignored.

Even if I write a simple value, without variables or unicode chars, like below, it's still ignored.

tmux_conf_theme_status_left="hi "
tmux_conf_theme_status_right=" bye"

I'm using Windows 10 + WSL2 + Ubuntu + Zsh. Here's the output of some commands, showing the versions.

➜  ~ uname -a
Linux NADF377 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
➜  ~ locale
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=
➜  ~ zsh --version
zsh 5.8 (x86_64-ubuntu-linux-gnu)
➜  ~ tmux -V
tmux 3.0a

What else should I look for?

gpakosz commented 2 years ago

Hello @Oliveiras 👋

Please double check installation steps.

Please also double check how you're launching tmux. Typically Oh my tmux! won't work if you launch tmux with the -f option to specify a configuration file location

Oliveiras commented 2 years ago

Hello @gpakosz ,

I've double checked and didn't found any unmet requirement. Here's what I've checked:

Other than that, I'm using Windows Terminal, have installed and configured to use "Source Code Pro for Powerline" font. It's seems working.

Am I missing somethig? What else can I look for?

Thanks!

gpakosz commented 2 years ago

If reloading the tmux configuration with <prefix> + r doesn't make the following changes materialize

tmux_conf_theme_status_left="hi "
tmux_conf_theme_status_right=" bye"

Then it means tmux didn't load ~/.tmux.conf in the first place: ~/.tmux.conf should be a symlink to ~/.tmux/.tmux.conf.

Can you please paste the output of

$ head -4 ~/.tmux.conf

?

gpakosz commented 2 years ago

You can also look for /etc/tmux.conf or /usr/local/etc/tmux.conf files. If they exist, tmux won't load ~/.tmux.conf

Oliveiras commented 2 years ago

Here is the output of that command and the check to see if those other files exists:

➜  ~ head -4 ~/.tmux.conf
# : << EOF
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
#         without any warranty.
➜  ~ ls -lh ~/.tmux.conf
lrwxrwxrwx 1 alex alex 16 Dec 27 11:58 /home/alex/.tmux.conf -> .tmux/.tmux.conf
➜  ~ ls -lh /etc/tmux.conf
ls: cannot access '/etc/tmux.conf': No such file or directory
➜  ~ ls -lh /usr/local/etc/tmux.conf
ls: cannot access '/usr/local/etc/tmux.conf': No such file or directory

Other than that, I know the file is being loaded because if I change the color (for example) in the .tmux.conf.local, it does get applied.

Oliveiras commented 2 years ago

I finally found the problem, I tried to install a theme plugin (gruvbox) and it interacted badly with oh my tmux. I uninstalled it and the status bar is now working fine. Thanks for your time and sorry for not remembering mentioning that part.