Remove git status colorization from PS1
This commit is contained in:
parent
e633ef0e5c
commit
b2fde694d8
8
.bashrc
8
.bashrc
@ -152,13 +152,7 @@ git_prompt () {
|
||||
|
||||
git_branch=$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p')
|
||||
|
||||
if git diff --quiet 2>/dev/null >&2; then
|
||||
git_color="${c_git_clean}"
|
||||
else
|
||||
git_color=${c_git_cleanit_dirty}
|
||||
fi
|
||||
|
||||
echo " -- $git_color$git_branch${c_reset}"
|
||||
echo " -- $git_branch"
|
||||
}
|
||||
|
||||
kubectl_context() {
|
||||
|
Loading…
Reference in New Issue
Block a user