diff --git a/.gitignore b/.gitignore index 964f82e7..61c293ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -src/.bin \ No newline at end of file +src/.bin +.stack-work diff --git a/gitstatus.py b/gitstatus.py index d944fd4e..c1dd9222 100755 --- a/gitstatus.py +++ b/gitstatus.py @@ -12,7 +12,7 @@ error_string = error.decode('utf-8') -if 'fatal: Not a git repository' in error_string: +if 'fatal: Not a git repository'.lower() in error_string: sys.exit(0) branch = branch.decode("utf-8").strip()[11:] diff --git a/zshrc.sh b/zshrc.sh index d4010c1e..856fe02d 100644 --- a/zshrc.sh +++ b/zshrc.sh @@ -82,7 +82,7 @@ git_super_status() { STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_CHANGED$GIT_CHANGED%{${reset_color}%}" fi if [ "$GIT_UNTRACKED" -ne "0" ]; then - STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_UNTRACKED%{${reset_color}%}" + STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_UNTRACKED$GIT_UNTRACKED%{${reset_color}%}" fi if [ "$GIT_CHANGED" -eq "0" ] && [ "$GIT_CONFLICTS" -eq "0" ] && [ "$GIT_STAGED" -eq "0" ] && [ "$GIT_UNTRACKED" -eq "0" ]; then STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_CLEAN"