You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20241119-101432-4050072d x86_64-pc-windows-msvc
Ask your question!
I would like to define an action in Lua config file based on the state of some environment variable.
The problem is the var is newly set in running environment and the value is not returned by os.getenv which works fine only for vars defined at wezterm startup, so for wezterm process. The variable is fresh defined and available in the current pane context.
I can't find any way to get it, including PaneInfo, ProcessInfo, etc...
There are maybe some options via os.execute or io.open, but that is to horrific, getting local env should be much more elegant than that.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What Operating System(s) are you running on?
Windows
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20241119-101432-4050072d x86_64-pc-windows-msvc
Ask your question!
I would like to define an action in Lua config file based on the state of some environment variable.
The problem is the var is newly set in running environment and the value is not returned by os.getenv which works fine only for vars defined at wezterm startup, so for wezterm process. The variable is fresh defined and available in the current pane context.
I can't find any way to get it, including PaneInfo, ProcessInfo, etc...
There are maybe some options via os.execute or io.open, but that is to horrific, getting local env should be much more elegant than that.
Beta Was this translation helpful? Give feedback.
All reactions