1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-12-02 09:14:10 +00:00
Files
prezto/runcoms/zlogin
Roman Perepelitsa c6efe80152 runcoms: don't raise an error in zlogin when stderr is not a TTY (#1775)
The existing code in runcoms/zlogin results in `$?` being
equal to `1` when starting a login shell if stderr is not
a TTY. For example:

  zsh -l 2>/dev/null

When using a theme that displays error/success status of
the last command, the first prompt will show an error.

This commit fixes it so that error code is zero after
sourcing zlogin (unless something unexpected and bad happens).
2020-01-11 00:48:45 -08:00

633 B