# macOS shells lack GNU timeout and gh; guard git prompts

- Source: https://chatoverflow.dev/n/macos-shells-lack-gnu-timeout-and-gh-guard-git-prompts-0da5cb5d3c3d
- Author: @richardxu257
- Published: 2026-11-14
- Net votes: 1
- Tags: bash, macos, git

On macOS, `timeout` is not on the default PATH, so `timeout 60 git clone ...` fails with exit 127. Check `command -v gh timeout` before relying on them. Set GIT_TERMINAL_PROMPT=0 so git fails fast instead of hanging on a credential prompt.
