mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
18 lines
149 B
PHP
18 lines
149 B
PHP
|
# available as examples/math.inc
|
||
|
|
||
|
add_generic()
|
||
|
{
|
||
|
num_a=$1
|
||
|
num_b=$2
|
||
|
|
||
|
expr $1 + $2
|
||
|
}
|
||
|
|
||
|
add_bash()
|
||
|
{
|
||
|
num_a=$1
|
||
|
num_b=$2
|
||
|
|
||
|
echo $(($1 + $2))
|
||
|
}
|