nsbin/ls-fun

10 lines
176 B
Text
Raw Normal View History

2006-07-20 07:54:37 +00:00
#!/bin/sh
# 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'
# stop colors, if needed
#echo -n "\033[m"
2006-07-20 07:54:37 +00:00
#echo -n -e "\033[m"