When not in a git repo, the prompt does not use two lines

This commit is contained in:
Arialdo Martini 2013-09-04 08:47:18 +02:00
parent fc42bd7a57
commit 8d32b73a46

View File

@ -174,9 +174,15 @@ function build_prompt {
PS1="${PS1} ${yellow}[${tag_at_current_commit}]${reset}"
fi
fi
if [ ${two_lines} == true -a ${is_a_git_repo} == true ];
then
break="\n";
else
break="";
fi
if [[ ${two_lines} ]]; then break="\n"; fi
PS1="${PS1}${reset}${break}${finally}"
}