Skip to content

Commit 8e8923f

Browse files
author
Jeff Bai
committed
Syncing with /etc/timezone
1 parent 920e5bf commit 8e8923f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

profile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ export HISTIGNORE="&:[bf]g:exit"
5353
# Timezone variable $TZ, Wine and stuff alike need it.
5454
export TZ="$(readlink /etc/localtime | sed 's/^\.\.//g' | sed "s/\/usr\/share\/zoneinfo\///")"
5555

56+
# And sync this setting onto /etc/timezone for weird stuff like indicator-datetime.
57+
echo $TZ > /etc/timezone
58+
5659
for script in /etc/profile.d/*.sh ; do
5760
[ -r $script ] && . $script
5861
done

0 commit comments

Comments
 (0)