Closed esn89 closed 1 year ago
Weirdly enough, when I start the terminal from another terminal as foreground, I see the update-right-status show up on my wezterm
. Launching it by clicking on the icon, or via App Launcher on MacOS, my right status does not show.
I have a feeling it cannot find the binary, because it does not know about my $PATH and the associated binaries.
I have tried this:
config.set_environment_variables = {
PATH = os.getenv('PATH'),
}
and that did not help.
Try replacing binary name with full path to it.
The logs clearly show that your event handler is throwing an error, so it never sets the right status on the window. wezterm inherits its PATH from Finder, which does not pull in settings from your shell, so you will need to "do something" to pick up the path.
You can either:
kubectl
wezterm.run_child_process({ 'zsh', '-c', 'kubectl config current-context' })
Great, that fixes things. Thank you.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20230712-072601-f4abf8fd
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
update-right-status now showing up on my right hand side.
To Reproduce
No response
Configuration
Expected Behavior
I expect to see things like a hardcoded string and my current kubernetes cluster that I have set via:
kubectl config current-context
Logs
Anything else?
No response