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