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:
parent
3faf6504bc
commit
5380153043
4
aliases
4
aliases
@ -34,9 +34,7 @@ alias -g NUL="&> /dev/null"
|
|||||||
alias -g BG="&;disown"
|
alias -g BG="&;disown"
|
||||||
alias -g COL="| column -t"
|
alias -g COL="| column -t"
|
||||||
alias -g CLIP="| xclip -i -selection primary -f | xclip -i -selection clipboard"
|
alias -g CLIP="| xclip -i -selection primary -f | xclip -i -selection clipboard"
|
||||||
calc() {
|
calc() { bc -l <<< "$@"; }
|
||||||
echo "$@" | bc -l
|
|
||||||
}
|
|
||||||
|
|
||||||
alias svi=sudoedit
|
alias svi=sudoedit
|
||||||
# This will enable us to use aliases in sudo.
|
# This will enable us to use aliases in sudo.
|
||||||
|
Loading…
Reference in New Issue
Block a user