1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00
wezterm/pty/src
Wez Furlong 7158c435d5 lua: patch os.getenv with our own function
ad9490ee8f unset SHELL from the
environment on startup which had the consequence of causing
`os.getenv("SHELL")` to return `nil` when used in the config file.

Rather than simply restoring SHELL env var, recognize that reading
the environment from a long lived process is prone to seeing
stable environment forever.

We already compensate for this in the pty crate's understanding
of the base environment, so this commit patches `os.getenv`
and replaces it with our own imlementation that uses that same
logic.

The base environment logic has been extended to set SHELL from
the passwd database to round things out.

refs: https://github.com/wez/wezterm/discussions/2481
2022-09-04 15:39:28 -07:00
..
win update conpty to v1.14.2281.0 release 2022-08-29 08:32:08 -07:00
cmdbuilder.rs lua: patch os.getenv with our own function 2022-09-04 15:39:28 -07:00
lib.rs change text cursor to fa_lock when entering passwords 2022-09-02 09:00:28 -07:00
serial.rs pty: try_clone_writer -> take_writer 2022-08-12 07:56:46 -07:00
unix.rs change text cursor to fa_lock when entering passwords 2022-09-02 09:00:28 -07:00