Combine Listing and Viewing
Adictive little DWIM shell function
l () {
if [[ $# -eq 1 && -f $1 ]]; then
case $1 in
*gz) zmore $1 ;;
*) less $1 ;;
esac
else
ls -CFL $*
fi
}
l () {
if [[ $# -eq 1 && -f $1 ]]; then
case $1 in
*gz) zmore $1 ;;
*) less $1 ;;
esac
else
ls -CFL $*
fi
}