Update cls to work correctly in Windows Terminal
This commit is contained in:
parent
6d92a82d8c
commit
01fcdc1863
6
zshrc
6
zshrc
@ -186,9 +186,11 @@ alias weather="curl wttr.in"
|
|||||||
|
|
||||||
case `uname` in
|
case `uname` in
|
||||||
Linux)
|
Linux)
|
||||||
[ "$TMUX" = "" ] && \
|
if [ "$TMUX" = "" ] || [ -d /mnt/c ]; then
|
||||||
alias cls="printf '\ec'" || \
|
|
||||||
alias cls="clear && printf '\e[3J'"
|
alias cls="clear && printf '\e[3J'"
|
||||||
|
else
|
||||||
|
alias cls="printf '\ec'"
|
||||||
|
fi
|
||||||
alias ls='ls -F --color=auto'
|
alias ls='ls -F --color=auto'
|
||||||
if which cgdb &> /dev/null; then
|
if which cgdb &> /dev/null; then
|
||||||
alias debug='cgdb --args'
|
alias debug='cgdb --args'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user