matchai / spacefish

🚀🐟 The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
962 stars 79 forks source link

Dir section doesn't appear correctly in the .git folder of a repo #21

Closed matchai closed 6 years ago

matchai commented 6 years ago

The following prompt appears when in a .git folder: image

It appears that this is due to the git rev-parse --show-toplevel command used to get the path of the git repo root returning an empty result.

matchai commented 6 years ago

Dupe of #22