16 ms·
A fun way to play this game with less downside is to run `set -euo pipefail` in an interactive session. Then, whenever you execute a command that returns a non-
by KerrickStaley 8mo ago
A fun way to play this game with less downside is to run `set -euo pipefail` in an interactive session. Then, whenever you execute a command that returns a non-zero exit code, your shell will exit immediately.
Unfortunately certain commands like `rg` will return non-zero by design when there are no matches, which could be an intentional outcome.
- extraduder_ire 8mo agoJust remember what those commands are, and to type a || or && next to them each time you run one. '<cmd> || echo$?' is a good option, if you care about the return value.