From cb4b18b7db8f1bd0a524e96ce12985d566840999 Mon Sep 17 00:00:00 2001 From: Shubhankar Maurya Date: Fri, 22 Oct 2021 15:25:49 +0000 Subject: [PATCH] terminal can clear 40 times faster --- .config/fish/config.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index fe1899e..3600b78 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -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 --"