2006-07-20 07:54:37 +00:00
|
|
|
#!/bin/sh
|
2009-12-28 19:15:35 +00:00
|
|
|
# Found somewhere on the net
|
2006-07-20 07:54:37 +00:00
|
|
|
|
|
|
|
# ls with colors :)
|
|
|
|
ls "$@" | perl -pe '$i=$.;s//\e[3@{[$i++%7+1]}m/g'
|
|
|
|
|
2009-12-28 19:15:35 +00:00
|
|
|
# stop colors, if needed
|
|
|
|
#echo -n "\033[m"
|
2006-07-20 07:54:37 +00:00
|
|
|
#echo -n -e "\033[m"
|