addet math function

This commit is contained in:
pika 2024-10-18 17:13:19 +02:00
parent e8bdf7d914
commit 8ae28bf9d1

9
.zshrc
View file

@ -520,9 +520,16 @@ _tools_(){
has $pkgs
}
fi
}
if command_exists bc; then
math() {
echo "$*" | bc -l
}
else
echo_error "No bc, so no math will work"
fi
main(){
get_packager
_init