X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=.profile.d%2Ftimezone.sh;h=2a00e86e37eb022eba646d823ffc4786dd69984f;hb=HEAD;hp=6d4387be417f541e68284193eaf3193de9a017e3;hpb=31f603e26a0b1135a5eebc43e49c762c608096b4;p=home.git diff --git a/.profile.d/timezone.sh b/.profile.d/timezone.sh index 6d4387b..537376b 100644 --- a/.profile.d/timezone.sh +++ b/.profile.d/timezone.sh @@ -1,5 +1,14 @@ -#export TZ= +#export TZ=Asia/Kathmandu +#export TZ=Asia/Bangkok +#export TZ=Asia/Tokyo unset TZ if [[ $- == *i* && -n ${TZ} ]] ; then echo "Timezone now set to $TZ" fi + +date() { + if [[ $# -eq 0 ]] ; then + set -- "+%a %d %b %Y %T %Z %z" + fi + command date "$@" +}