Unicode stuff.
[profile.git] / opt / bin / ts
1 #!/bin/bash
2
3 options="-l"
4 if echo "$LS_OPTIONS" | /bin/grep -- "--time-style=long-iso" &>/dev/null; then
5   today=$(/bin/date +'%Y-%m-%d')
6   options="$options --time-style=long-iso"
7 else
8   today=$(/bin/date +'%b %e')
9 fi
10 /bin/ls $options ${1+"$@"} | /bin/grep "$today [012][0-9]:[0-9][0-9]"