Update git checker for newer versions that complain when not in a git dir
This commit is contained in:
parent
f3c6eb0c7f
commit
e25fe5a67c
2
base.sh
2
base.sh
@ -12,7 +12,7 @@ function enrich {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function build_prompt {
|
function build_prompt {
|
||||||
enabled=`git config --local --get oh-my-git.enabled`
|
enabled=`git config --local --get oh-my-git.enabled 2> /dev/null`
|
||||||
if [[ ${enabled} == false ]]; then
|
if [[ ${enabled} == false ]]; then
|
||||||
echo "${PSORG}"
|
echo "${PSORG}"
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user