better prompts

This commit is contained in:
Dylan Araps
2020-08-04 10:55:54 +03:00
parent 0e9fe380c8
commit ea36f48c96
+2 -2
View File
@@ -29,7 +29,7 @@ hist_search() {
for file do
case ${PWD%%/}/$file in
"$old_pwd") y=$j y2=$((j > bottom ? bottom : j))
"$old_pwd") y=$j y2=$((j > bottom ? bottom : j)) cur=$file
esac
j=$((j + 1))
@@ -76,7 +76,7 @@ status_line() {
}
prompt() {
printf '\0337\033[%sH%s\033[?25h' "$LINES" "$1"
printf '\0337\033[%sH%s\033[?25h\033[K' "$LINES" "$1"
case $2 in
r)