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

Theme config not being loaded when put in a separate file #51

Open
rbhanot4739 opened this issue Feb 4, 2025 · 0 comments
Open

Theme config not being loaded when put in a separate file #51

rbhanot4739 opened this issue Feb 4, 2025 · 0 comments

Comments

@rbhanot4739
Copy link

Hello,

Thank you for making this amazing theme. I am having slight bit of issue that when I move my theme config to a separate file, the config is not applied. So here is what I have in my tmux.conf and the value of USER_THEME is set to gruvbox.

if-shell -b 'test -n "$USER_THEME"' "source-file ${HOME}/scripts/tmux/${USER_THEME}.tmux"

And here are contents of ${HOME}/scripts/tmux/${USER_THEME}.tmux

set -g @tmux-gruvbox 'dark256'
set -g @tmux-gruvbox-statusbar-alpha 'true'
set -g @tmux-gruvbox-left-status-a '#h'
set -g @tmux-gruvbox-right-status-z '#[bold]#S #{tmux_mode_indicator}'

However if change my tmux.conf to below the theme is loaded but with default config but none of the options from ${HOME}/scripts/tmux/${USER_THEME}.tmux are applied. Strangely, if I reload the tmux same config in a running tmux session then the custom options from the file are applied.

set -g @plugin 'egel/tmux-gruvbox'
if-shell -b 'test -n "$USER_THEME"' "source-file ${HOME}/scripts/tmux/${USER_THEME}.tmux"

I am not sure if there is something I am missing in my config (obviously don't know the internal details tmux theme loading works etc), but I am not able to figure this out. It could be very much possible that this issue isn't directly related to this theme so apologies in advance for that.

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