diff options
author | David Phillips <david@yeah.nah.nz> | 2019-03-03 15:24:15 +1300 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2019-03-03 15:24:15 +1300 |
commit | b38fe4605b5d0af1b523e8649a5228fdcb0d7710 (patch) | |
tree | 0c7df722972e6b50501116a1ad82d37747c8b90d | |
parent | 1bbb6b1ea1f8cc2c49922ef8ac08c37b967c3a7f (diff) | |
download | dotfiles-b38fe4605b5d0af1b523e8649a5228fdcb0d7710.tar.xz |
aliases: Clean up aliases file
-rw-r--r-- | aliases | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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 |