matchai / spacefish

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

SPACEFISH_GIT_STATUS_SHOW is never checked #155

Closed hrvoj3e closed 5 years ago

hrvoj3e commented 5 years ago

SPACEFISH_GIT_STATUS_SHOW can not be turned off - check this variable and return if false

Description

Motivation and Context

Improves #154

Types of changes

Screenshots (if appropriate):

How Has This Been Tested?

Checklist:

hrvoj3e commented 5 years ago

https://github.com/denysdovhan/spaceship-prompt/blob/master/sections/git_status.zsh

spaceship_git_status() {
  [[ $SPACESHIP_GIT_STATUS_SHOW == false ]] && return

  spaceship::is_git || return
...
...
matchai commented 5 years ago

Hey @hrvoj3e. Thank you for the contribution! 😄 That's a great bug you caught. Before we have this merge in, could you please add a test for this config option so that we can catch future regressions?

The appropriate test file is here: https://github.com/matchai/spacefish/blob/master/tests/__sf_section_git_status.test.fish

hrvoj3e commented 5 years ago

Is this OK? 8761549

matchai commented 5 years ago

:tada: This PR is included in version 2.2.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: