X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=.profile.d%2Ftimezone.sh;h=2a00e86e37eb022eba646d823ffc4786dd69984f;hb=dadccb496713a424bf80828b8a538b06d8dea9ae;hp=eeda99972feb788cc874c38268e576e715710024;hpb=aaf4057a1e9a6cc5bb229327470bc04a01e8946a;p=home.git diff --git a/.profile.d/timezone.sh b/.profile.d/timezone.sh index eeda999..2a00e86 100644 --- a/.profile.d/timezone.sh +++ b/.profile.d/timezone.sh @@ -4,4 +4,9 @@ if [[ $- == *i* && -n ${TZ} ]] ; then echo "Timezone now set to $TZ" fi -alias date='date "+%a %d %b %Y %T %Z %z"' +date() { + if [[ $# -eq 0 ]] ; then + set -- "+%a %d %b %Y %T %Z %z" + fi + command date "$@" +}