Navigation Menu

Skip to content

Commit

Permalink
utility: add math helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Mar 18, 2013
1 parent b51902d commit 3f7c363
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions utility/init.zsh
Expand Up @@ -119,6 +119,18 @@ if (( $+commands[whatis] )) && zdefault -t ':zoppo' easter-egg 'true'; then
fi
# }}}

# math {{{
if zdefault -t ':zoppo:plugin:utility:math' enable 'yes'; then
zmodload zsh/mathfunc

function math {
echo $((${=@}))
}

alias m="noglob math"
fi
# }}}

# Disable Correction {{{
function {
local programs
Expand Down

0 comments on commit 3f7c363

Please sign in to comment.