Ps1 : No need for dotfiles check for git anymore.

This commit is contained in:
Dmitry Voronin 2024-03-04 03:27:35 +03:00
parent f13a47bbc5
commit 23016442b0

View file

@ -43,12 +43,10 @@ function __prompt_command() {
# PS1+="\${PWD}" # PS1+="\${PWD}"
# Add git branch if available. # Add git branch if available.
if ! _git_is_dotfiles; then
local git_branch="$(_git_current_branch)" local git_branch="$(_git_current_branch)"
if [[ "${git_branch}" != "" ]]; then if [[ "${git_branch}" != "" ]]; then
PS1+=" \[${color_bblue}\]@${git_branch}" PS1+=" \[${color_bblue}\]@${git_branch}"
fi fi
fi
# set error red # set error red
if $is_error; then if $is_error; then