-# Make sure there is no alias named ls as it causes problems with the
-# following ls function on (at least) bash 4.0.35.
-unalias ls 2> /dev/null
-# GNU ls with colors.
-if [ x$ls_color = xgnu ]; then
- ls() {
- my_ls --color "$@"
- }
-# Normal ls with colors.
-elif [ x$ls_color = xcli ]; then
- ls() {
- CLICOLOR_FORCE=1 my_ls -G "$@"
- }
-# Simple ls with no colors.
-else
- ls() {
- my_ls "$@"
- }
-fi
-unset ls_color