Fix clear on arch.zsh bookmark.zsh init.zsh LICENSE plugins README.md prompt dissappearing

This commit is contained in:
Alexander Rosenberg 2023-05-13 04:11:15 -07:00
parent 745f59931d
commit aadd42198f
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -204,10 +204,10 @@ zle -N zle-line-init
__zsh_clear_screen_and_scrollback() {
echoti civis >"$TTY"
printf '%b' '\e[H\e[2J' >"$TTY"
zle .reset-prompt
zle -R
printf '%b' '\e[3J' >"$TTY"
echoti cnorm >"$TTY"
zle .reset-prompt
zle -R
}
zle -N __zsh_clear_screen_and_scrollback
bindkey '^L' __zsh_clear_screen_and_scrollback