I'm running macOS Sequoia Version 15.1 and currently experience issues running commands in a zsh terminal while connected to the internet.
When running commands like git status
, they take incredibly long on the first run. Also, for example, when running git log --online
, I can see how the commits pop up line by line, where it takes approximately 500ms to print one line. This only happens on the first run and when connected to the internet. If I turn off wifi, the commands execute immediately, as expected. It doesn't only affect commands like git; things like pnpm info
or starting up terminal-based editors also cause the issue.
I've also noted that when running commands, e.g., git rebase -i HEAD~5
, those fail with fatal: mmap failed: Operation timed out
when I am offline. Is that normal, or could it point to the root cause of this issue?
I've also already tried turning IPv6 on and off. However, there is little difference. I've attached my .zshrc
and etc/hosts
files, which look acceptable.
.zshrc
export NVM_DIR=~/.nvmsource $(brew --prefix nvm)/nvm.sh# pnpmexport PNPM_HOME="/Users/user/Library/pnpm"case ":$PATH:" in *":$PNPM_HOME:"*) ;; *) export PATH="$PNPM_HOME:$PATH" ;;esacexport PATH="$HOME/pdfsizeopt:$PATH"# pnpm endexport PATH="/opt/homebrew/opt/pax/bin:$PATH"test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"export LC_ALL=en_US.UTF-8export LC_CTYPE=en_US.UTF-8
etc/hosts
### Host Database## localhost is used to configure the loopback interface# when the system is booting. Do not change this entry.##127.0.0.1 localhost255.255.255.255 broadcasthost::1 localhost