The git module seems to have issues when the Path contains spaces. An error message expr: syntax error or expr: not a decimal number: /part/of/thepath' is printed at the end of every output.
It must be git module related as it only occurs in folders that are part of a git repository.
To reproduce:
cd /tmp;
mkdir Some\ Path\ with\ spaces;
git init;
Provide a screenshot that shows your issue

Spaceship version: 3.0.2
Zsh version: zsh 5.4.2 (x86_64-apple-darwin16.7.0)
Zsh framework: oh-my-zsh
Zsh plugin manager: None
Terminal emulator: iTerm2
Operating system: macOS 10.13.2
.zshrc# your configuration here
Able to reproduce, We'll look into it. Thank you for the report.
Found the culprit in dir section, used to truncate repository path while in git repositories.
SPACESHIP_DIR_TRUNC_REPO=false in your .zshrc.Wow, this was very fast, thank you! It works!
Happy to see it resolved. Behavior of SPACESHIP_DIR_TRUNC_REPO is modified with #281 and this issue will be resolved.
worked perfect for me to! Tks!
Most helpful comment
Found the culprit in
dirsection, used to truncate repository path while ingitrepositories.https://github.com/denysdovhan/spaceship-prompt/blob/c33a02c1dce57025128f94d1eaa4a4965362c65b/sections/dir.zsh#L29
As _temporary workaround_ , set
SPACESHIP_DIR_TRUNC_REPO=falsein your.zshrc.