From 01fcdc18632582457567129248815849fd3db769 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 17 Jul 2020 23:10:16 +0100 Subject: [PATCH] Update cls to work correctly in Windows Terminal --- zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index d8a917e..57ec25c 100644 --- a/zshrc +++ b/zshrc @@ -186,9 +186,11 @@ alias weather="curl wttr.in" case `uname` in Linux) - [ "$TMUX" = "" ] && \ - alias cls="printf '\ec'" || \ + if [ "$TMUX" = "" ] || [ -d /mnt/c ]; then alias cls="clear && printf '\e[3J'" + else + alias cls="printf '\ec'" + fi alias ls='ls -F --color=auto' if which cgdb &> /dev/null; then alias debug='cgdb --args'