summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2019-03-03 15:24:15 +1300
committerDavid Phillips <david@yeah.nah.nz>2019-03-03 15:24:15 +1300
commitb38fe4605b5d0af1b523e8649a5228fdcb0d7710 (patch)
tree0c7df722972e6b50501116a1ad82d37747c8b90d
parent1bbb6b1ea1f8cc2c49922ef8ac08c37b967c3a7f (diff)
downloaddotfiles-b38fe4605b5d0af1b523e8649a5228fdcb0d7710.tar.xz
aliases: Clean up aliases file
-rw-r--r--aliases14
1 files changed, 11 insertions, 3 deletions
diff --git a/aliases b/aliases
index 5d6b257..0837624 100644
--- a/aliases
+++ b/aliases
@@ -12,16 +12,24 @@ man() {
ccc() {
bc -l <<< "$@"
}
+alias ccc='noglob ccc'
+
+f() {
+ noglob bc -l <<< "scale=1;($@-32)*5/9"
+}
+
alias sudo="sudo "
alias monut=mount
alias pamcan=pacman
alias sl=ls
alias ls="ls -F"
-alias grep="grep --color=auto"
-alias egrep="egrep --color=auto"
-alias xpdf="xpdf -cont"
alias feh="feh --magick-timeout=0"
alias xcp="xclip -selection c"
alias pd=popd
alias po='pushd $OLDPWD'
+# Add hotdog opts only if GNUy
+if grep -V | grep -q 'GNU grep' ; then
+ alias grep="grep --color=auto"
+ alias egrep="egrep --color=auto"
+fi