1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Use a bash-ism for calc() alias

This commit is contained in:
Joe Groocock 2017-08-27 16:41:16 +01:00
parent 3faf6504bc
commit 5380153043
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -34,9 +34,7 @@ alias -g NUL="&> /dev/null"
alias -g BG="&;disown"
alias -g COL="| column -t"
alias -g CLIP="| xclip -i -selection primary -f | xclip -i -selection clipboard"
calc() {
echo "$@" | bc -l
}
calc() { bc -l <<< "$@"; }
alias svi=sudoedit
# This will enable us to use aliases in sudo.