#!/bin/sh -e
#
# ls-sizetime - runs ls(1) and prints file size, modification time, and pathname
# if the standard output stream is a terminal, output is colorized
#
# for use in shell config: alias 'ls-sizetime -Ahtr'
#
# usage: ls-sizetime [ls arguments]..
#
# ---
# see: https://github.com/sunaku/home

# shellcheck disable=SC2012
test -t 1 && tty=+ || tty=

ls -g -o ${tty:+--color} "$@" | sed 's/^\S\+\s\+\S\+//; /^$/d'
