minor space corrections

This commit is contained in:
David Refoua
2022-10-15 12:58:22 +03:30
2 changed files with 90 additions and 89 deletions

10
vendor/git-prompt.sh vendored
View File

@ -12,15 +12,15 @@ function getGitStatusSetting() {
function getSimpleGitBranch() {
gitDir=$(git rev-parse --git-dir 2>/dev/null)
if [ -z "$gitDir" ]; then
return 0
fi
return 0
fi
headContent=$(< "$gitDir/HEAD")
if [[ "$headContent" == "ref: refs/heads/"* ]]
then
echo " (${headContent:16})"
echo " (${headContent:16})"
else
echo " (HEAD detached at ${headContent:0:7})"
echo " (HEAD detached at ${headContent:0:7})"
fi
}
@ -71,4 +71,4 @@ else
PS1="$PS1"'λ ' # prompt: always λ
fi
MSYS2_PS1="$PS1" # for detection by MSYS2 SDK's bash.basrc
MSYS2_PS1="$PS1" # for detection by MSYS2 SDK's bash.basrc