]> git.wh0rd.org Git - home.git/blob - .profile.d/timezone.sh
timezone: fix date alias when using it with args
[home.git] / .profile.d / timezone.sh
1 #export TZ=
2 unset TZ
3 if [[ $- == *i* && -n ${TZ} ]] ; then
4         echo "Timezone now set to $TZ"
5 fi
6
7 date() {
8         if [[ $# -eq 0 ]] ; then
9                 set -- "+%a %d %b %Y %T %Z %z"
10         fi
11         command date "$@"
12 }