I'm trying to remove an alias set to the keyword clear in zsh, but first i would like to check if it exists. here is what i've tried:
if whence -w clear | grep "alias" then
unalias clear
fi
but I can't figure out how to make if work with the output of the piline.