addet math function
This commit is contained in:
parent
e8bdf7d914
commit
8ae28bf9d1
1 changed files with 8 additions and 1 deletions
9
.zshrc
9
.zshrc
|
@ -520,9 +520,16 @@ _tools_(){
|
||||||
has $pkgs
|
has $pkgs
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if command_exists bc; then
|
||||||
|
math() {
|
||||||
|
echo "$*" | bc -l
|
||||||
|
}
|
||||||
|
else
|
||||||
|
echo_error "No bc, so no math will work"
|
||||||
|
fi
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
get_packager
|
get_packager
|
||||||
_init
|
_init
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue