When not in a git repo, the prompt does not use two lines
This commit is contained in:
parent
fc42bd7a57
commit
8d32b73a46
@ -174,9 +174,15 @@ function build_prompt {
|
|||||||
PS1="${PS1} ${yellow}[${tag_at_current_commit}]${reset}"
|
PS1="${PS1} ${yellow}[${tag_at_current_commit}]${reset}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if [ ${two_lines} == true -a ${is_a_git_repo} == true ];
|
||||||
|
then
|
||||||
|
break="\n";
|
||||||
|
else
|
||||||
|
break="";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${two_lines} ]]; then break="\n"; fi
|
|
||||||
PS1="${PS1}${reset}${break}${finally}"
|
PS1="${PS1}${reset}${break}${finally}"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user