Files
nyaterm/src-tauri
Jillur Rahman f9a4f3b8c5 fix(ssh): keep child shells working when PROMPT_COMMAND is exported
When the login shell exports PROMPT_COMMAND (for example from
/etc/profile), the bash shell integration line keeps that export, so
`su`, a nested `bash` and zellij panes inherit "__nyaterm_prompt; ..."
without the function. They print
"bash: __nyaterm_prompt: command not found" before every prompt, and
the user's own hook sees $? = 127.

For an exported PROMPT_COMMAND, call the hook through a variable that
is not exported. Child shells then skip it and run the rest of
PROMPT_COMMAND with the real $?. A non-exported PROMPT_COMMAND is
installed exactly as before.
2026-09-30 09:18:29 +06:00
..
2026-09-29 01:55:41 +08:00
2026-09-29 01:55:41 +08:00
2026-09-29 01:55:41 +08:00
2026-09-29 01:55:41 +08:00