1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-29 00:21:57 +03:00
wezterm/pty
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
..
examples pty: fixup for macos 2022-08-12 08:37:20 -07:00
src lua: patch os.getenv with our own function 2022-09-04 15:39:28 -07:00
Cargo.toml change text cursor to fa_lock when entering passwords 2022-09-02 09:00:28 -07:00
LICENSE.md Add missing license files 2022-08-17 07:19:12 -07:00