}' \
"$ls_env" "$ls_path" "$ls_color"
+# Check if grep supports --color=auto.
+if echo test | grep --color=auto test >/dev/null 2>&1; then
+ :
+else
+ echo 'shell/aliases: removing grep --color=auto'
+ sed '/^alias grep=/ s/^/#/' shell/aliases > shell/aliases.tmp
+ mv shell/aliases.tmp shell/aliases
+fi
+
generate cat screenrc .in
# As screen-256color is not widely supported use it only on machines where the
# matching terminfo entry is available. This also requires a terminal emulator
# Use human readable sizes.
alias df='df -h'
+# Highlight matched strings. Doesn't work with a pager!
+alias grep='grep --color=auto'
+
# Edit the mercurial patch queue series file for the current mercurial
# repository in Vim. Also change Vim's pwd to the patches directory so other
# patches can easily be opened.