Prev | Current Page 228 | Next

Michael McCallister

"openSUSE Linux Unleashed"

Let??™s look at some of the settings defined here.
Choosing and Using a Shell 79
5
This section lets you display directory listings in different colors.
The colors are set in another file, DIR_COLORS. In this setting, bash looks for DIR_COLORS
first in the home directory, then in /etc.
#
# Colored file listings
#
if test -x /usr/bin/dircolors ; then
#
# set up the color-ls environment variables:
#
if test -f $HOME/.dir_colors ; then
eval `dircolors -b $HOME/.dir_colors`
elif test -f /etc/DIR_COLORS ; then
eval `dircolors -b /etc/DIR_COLORS`
fi
fi
Note the hash mark (#) in front of some of the lines. This indicates a comment line. The
line is not processed by the shell, but usually describes what the next batch of code is
supposed to do.
The next section defines some aliases. As mentioned before, aliases are command-line
shortcuts that allow you to substitute one command for another.
#
# Set some generic aliases
#
alias rd=rmdir
alias md=??™mkdir -p??™
alias which=??™type -p??™
alias rehash=??™hash -r??™
alias you=??™yast2 online_update??™
This alias is a nice one.


Pages:
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
zakłady bukmacherskie parking pyrzowice Spa w Ciechocinku loans online instant approval basketball.sport24x7.net