Update cls to work correctly in Windows Terminal

This commit is contained in:
Kenneth Benzie 2020-07-17 23:10:16 +01:00
parent 6d92a82d8c
commit 01fcdc1863

6
zshrc
View File

@ -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'