Author: igor
Date: Fri Oct 25 02:30:54 2013
New Revision: 12060
Log:
alias for colored /bin/grep in bash startup scripts as suggested by a user
Modified:
trunk/BOOK/postlfs/config/profile.xml
Modified: trunk/BOOK/postlfs/config/profile.xml
==============================================================================
--- trunk/BOOK/postlfs/config/profile.xml Fri Oct 25 02:08:21 2013
(r12059)
+++ trunk/BOOK/postlfs/config/profile.xml Fri Oct 25 02:30:54 2013
(r12060)
@@ -191,7 +191,7 @@
end of this section.</para>
<screen role="root"><userinput>cat > /etc/profile.d/dircolors.sh <<
"EOF"
-<literal># Setup for /bin/ls to support color, the alias is in /etc/bashrc.
+<literal># Setup for /bin/ls and /bin/grep to support color, the alias is in
/etc/bashrc.
if [ -f "/etc/dircolors" ] ; then
eval $(dircolors -b /etc/dircolors)
@@ -199,7 +199,8 @@
eval $(dircolors -b $HOME/.dircolors)
fi
fi
-alias ls='ls --color=auto'</literal>
+alias ls='ls --color=auto'
+alias grep='grep --color=auto'</literal>
EOF</userinput></screen>
</sect3>
@@ -358,10 +359,11 @@
# should go into ~/.bash_profile. Personal aliases and functions should
# go into ~/.bashrc
-# Provides a colored /bin/ls command. Used in conjunction with code in
-# /etc/profile.
+# Provides colored /bin/ls and /bin/grep commands. Used in conjunction
+# with code in /etc/profile.
alias ls='ls --color=auto'
+alias grep='grep --color=auto'
# Provides prompt for non-login shells, specifically shells started
# in the X environment. [Review the LFS archive thread titled
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page