X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=933f7ab303fc6f5da0b843c8cdc93468e0e8a059;hb=2e9ff8e5185eb3c4305368cf9e1fd14de2ed8f15;hp=d60a208fda399aad1fedca8a9c333d0471ce84b1;hpb=f4d445246a883529eee0039f579d14d82c6b2d0c;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index d60a208..933f7ab 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2218,14 +2218,6 @@ hex() { [[ -n "$1" ]] && printf "%x\n" $1 || { print 'Usage: hex ' ; return 1 } } -# calculate (or eval at all ;-)) with perl => p[erl-]eval -# hint: also take a look at zcalc -> 'autoload zcalc' -> 'man zshmodules | less -p MATHFUNC' -peval() { - [[ -n "$1" ]] && CALC="$*" || print "Usage: calc [expression]" - perl -e "print eval($CALC),\"\n\";" -} -functions peval &>/dev/null && alias calc=peval - # spawn a minimally set up mksh - useful if you want to umount /usr/. minimal-shell() { emulate -L zsh