# set up standard completion, removing cache autoload -Uz compinit rm -f ~/.zcompdump compinit # version of __git_files that elicits the segfault __git_files () { __git_tree_files ${PREFIX:-.} HEAD } # create a git repo that demonstrates the segfault set -o err_exit g=/tmp/break-zsh-git rm -rf $g mkdir -p $g cd $g git init mkdir a echo foo > a/a git add a/a git ci -ma # prep for segfault (just hit ) print -z git log a/