dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/dotfiles
Log | Files | Refs

commit 4acd2135fae594d1b54a0114533ee9a8509c938a
parent 66f7062b5b473202ed6ee14719937d603cd2ac95
Author: Ed van Bruggen <edvb54@gmail.com>
Date:   Thu, 31 Jul 2014 21:35:12 -0700

Bash: Add calc funtion

Diffstat:
bashrc | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bashrc b/bashrc @@ -127,9 +127,13 @@ alias emacs='emacs -nw' alias vless='vim -u /usr/share/vim/vim74/macros/less.vim' alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' - ipls () { ifconfig | grep 'inet addr:' | awk {'print $2'} } +# do calculations in bash faster +calc () { + echo $1 | bc -l +} + #}}}