Bugfix in prompt state condition check.
Added basic git segment.