Fix rendering error for the bash prompt on alacritty
This commit is contained in:
parent
9a63683331
commit
cddb54d142
1 changed files with 1 additions and 12 deletions
|
|
@ -1,8 +1,3 @@
|
||||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
|
||||||
case "$TERM" in
|
|
||||||
xterm-color|*-256color) color_prompt=yes;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
function __set_prompt() {
|
function __set_prompt() {
|
||||||
local branch
|
local branch
|
||||||
branch=$(git branch --show-current 2>/dev/null)
|
branch=$(git branch --show-current 2>/dev/null)
|
||||||
|
|
@ -23,12 +18,6 @@ function __set_prompt() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$color_prompt" = yes ]; then
|
|
||||||
PROMPT_COMMAND=__set_prompt
|
PROMPT_COMMAND=__set_prompt
|
||||||
else
|
|
||||||
PS1='\w\$ '
|
|
||||||
fi
|
|
||||||
|
|
||||||
unset color_prompt
|
|
||||||
|
|
||||||
printf '\033[3 q'
|
printf '\033[3 q'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue