aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh/40-functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to '_zsh/40-functions.zsh')
-rw-r--r--_zsh/40-functions.zsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/_zsh/40-functions.zsh b/_zsh/40-functions.zsh
index a9d30ed..83615ae 100644
--- a/_zsh/40-functions.zsh
+++ b/_zsh/40-functions.zsh
@@ -141,4 +141,15 @@ randpass() {
}
+## Fix terminal
+# Credit: https://unix.stackexchange.com/a/299922
+fix() {
+ reset
+ stty sane
+ tput rs1
+ clear
+ echo -e "\033c"
+}
+
+
# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: #