]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/aliases
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 26 Nov 2017 03:34:50 +0000 (03:34 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 26 Nov 2017 03:34:50 +0000 (03:34 +0000)
etc/profile.d/aliases

index 175de74263f8ad4d8c160d5a54adf93a7dcc71b1..e255d529f55adabdd6792aeaae89366d3a22b1c4 100644 (file)
@@ -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
-