Changeset b5905ae


Ignore:
Timestamp:
10/25/2013 09:30:54 AM (11 years ago)
Author:
Igor Živković <igor@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, 7.10, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gimp3, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/test-20220226, xry111/xf86-video-removal
Children:
07c1433
Parents:
368f397
Message:

alias for colored /bin/grep in bash startup scripts as suggested by a user

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12060 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/profile.xml

    r368f397 rb5905ae  
    192192
    193193<screen role="root"><userinput>cat &gt; /etc/profile.d/dircolors.sh &lt;&lt; "EOF"
    194 <literal># Setup for /bin/ls to support color, the alias is in /etc/bashrc.
     194<literal># Setup for /bin/ls and /bin/grep to support color, the alias is in /etc/bashrc.
    195195if [ -f "/etc/dircolors" ] ; then
    196196        eval $(dircolors -b /etc/dircolors)
     
    200200        fi
    201201fi
    202 alias ls='ls --color=auto'</literal>
     202alias ls='ls --color=auto'
     203alias grep='grep --color=auto'</literal>
    203204EOF</userinput></screen>
    204205
     
    359360# go into ~/.bashrc
    360361
    361 # Provides a colored /bin/ls command.  Used in conjunction with code in
    362 # /etc/profile.
     362# Provides colored /bin/ls and /bin/grep commands.  Used in conjunction
     363# with code in /etc/profile.
    363364
    364365alias ls='ls --color=auto'
     366alias grep='grep --color=auto'
    365367
    366368# Provides prompt for non-login shells, specifically shells started
Note: See TracChangeset for help on using the changeset viewer.