From e01274b2e300f9fd8343ef6244cf9467849d35b0 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 26 Nov 2017 03:34:50 +0000 Subject: [PATCH] etc/profile.d/aliases --- etc/profile.d/aliases | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/etc/profile.d/aliases b/etc/profile.d/aliases index 175de742..e255d529 100644 --- a/etc/profile.d/aliases +++ b/etc/profile.d/aliases @@ -17,6 +17,13 @@ which maildirmake > /dev/null && alias maildir_make="maildirmake -S Maildir; for which bc > /dev/null && alias bc="bc -q" which vim > /dev/null && alias vi=vim +#-------------------------------------------------------------------------------- +# grep +# +if ! grep --help 2>&1 | grep -qm1 ^BusyBox; then + alias grep='grep --color=auto' +fi + #-------------------------------------------------------------------------------- # ls # @@ -38,11 +45,3 @@ fi [ -n "$ls_opt" ] && alias ls="ls${ls_opt}" [ -n "$ll_opt" ] && alias ll="ls${ll_opt}" unset ls_opt ll_opt - -#-------------------------------------------------------------------------------- -# grep -# -if ! grep --help 2>&1 | grep -qm1 ^BusyBox; then - alias grep='grep --color=auto' -fi - -- 2.47.3