terminal can clear 40 times faster

This commit is contained in:
Shubhankar Maurya 2021-10-22 15:25:49 +00:00
parent c813771eb4
commit cb4b18b7db
1 changed files with 3 additions and 1 deletions

View File

@ -206,7 +206,9 @@ end
### ALIASES ###
alias clear='/bin/clear; echo; echo; seq 1 (tput cols) | sort -R | spark | lolcat; echo; echo'
# \x1b[2J <- clears tty
# \x1b[1;1H <- goes to (1, 1) (start)
alias clear='echo -en "\x1b[2J\x1b[1;1H" ; echo; echo; seq 1 (tput cols) | sort -R | spark | lolcat; echo; echo'
# root privileges
alias doas="doas --"