matchai / spacefish

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

Fix prompt error when accessing .git #61

Closed matchai closed 6 years ago

matchai commented 6 years ago

Description

Fixes a longstanding issue where navigating to the .git directory of a project throws errors. Instead of checking for git branches to identify whether the current directory is a git directory, the prompt now tries to locate the root git directory.

Motivation and Context

Closes #22

Types of changes

Screenshots (if appropriate):

How Has This Been Tested?

Checklist: