diff --git a/.zshrc b/.zshrc index 3a7fa38..d913668 100644 --- a/.zshrc +++ b/.zshrc @@ -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