Fix cls alias when in tmux on iTerm2

This commit is contained in:
Kenneth Benzie 2020-07-31 12:24:43 +01:00
parent a67649e844
commit 6be7ac0e4e

7
zshrc
View File

@ -187,14 +187,10 @@ which cmake &> /dev/null && \
which ssh &> /dev/null && \ which ssh &> /dev/null && \
alias ssh='TERM=xterm-256color ssh' alias ssh='TERM=xterm-256color ssh'
alias weather="curl wttr.in" alias weather="curl wttr.in"
alias cls="clear && printf '\e[3J'"
case `uname` in case `uname` in
Linux) Linux)
if [ "$TMUX" = "" ] || [ -d /mnt/c ]; then
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'
@ -203,7 +199,6 @@ case `uname` in
fi fi
;; ;;
Darwin) Darwin)
alias cls="clear && printf '\e[3J'"
alias ls='ls -GFh' alias ls='ls -GFh'
which lldb &> /dev/null && \ which lldb &> /dev/null && \
alias debug='lldb --' alias debug='lldb --'