-
Notifications
You must be signed in to change notification settings - Fork 8
Environment variables in tmux options not honoured #2
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
base: main
Are you sure you want to change the base?
Environment variables in tmux options not honoured #2
Conversation
…x options. Closes erikw#1.
@erikw Feel free to tackle this in any way you want... I you want to discard the PR it's OK but some users, specially on macOS might face the issue of not seeing the change reflected because of the wrong variable expansion. |
Thanks for your plugin by the way! It's very nice :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small typo fix and reformatting for easier reading.
# `"$HOME/a/b/c"` or else this script needs to sanitize that backslack for the `eval | ||
# echo `"$theme_path"` to properly expand the environment variables. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# `"$HOME/a/b/c"` or else this script needs to sanitize that backslack for the `eval | |
# echo `"$theme_path"` to properly expand the environment variables. | |
# `"$HOME/a/b/c"` or else this script needs to sanitize that backslack for | |
# the `$(eval echo "$theme_path")` to properly expand the environment variables. |
Spotted a minor typo, updated the example to reflect the actual code. Otherwise 👍
Thank you, I will need to look in to this more in detail when I have access to my own computer again (it will still take a while, hold on…). As I showed before, single quotes works fine on my setup: Thus I need to debug this further:) |
I had a quick look at the code now as I had a vague memory that I actually added extra code to make sure that environment variables like tmux-dark-notify/scripts/tmux-theme-mode.sh Lines 47 to 48 in dfa2b45
While I don't have access to this mac machine at the moment still for a while... maybe you could debug on your machine on why your One way to do this can be to enable debug mode in bash and log it all to a file and inspect. Edit https://github.com/erikw/tmux-dark-notify/blob/main/scripts/tmux-theme-mode.sh by inserting these two first lines at the top of the file
And after running the script, check the output logged to tmux-dark-notify/scripts/tmux-theme-mode.sh Lines 47 to 48 in dfa2b45
|
See the issue #1 for full description of what this PR is trying to address.