diff --git a/zsh/ohmyzsh/themes/tforgione.zsh-theme b/zsh/ohmyzsh/themes/tforgione.zsh-theme index c91a166..20c412e 100644 --- a/zsh/ohmyzsh/themes/tforgione.zsh-theme +++ b/zsh/ohmyzsh/themes/tforgione.zsh-theme @@ -77,6 +77,16 @@ else fi git_prompt_info_no_space() { + current="$PWD" + while [ "$PWD" != "/" ] && [ ! -d "$PWD/.git" ]; do + cd .. + done + + if [ -f "$PWD/.gitskipprompt" ]; then + return + fi + + cd "$current" local info=$(git_prompt_info) if [ ! -z $info ]; then echo " $info"