Zsh: Use more shell builtins for LC_TIME setting
This commit is contained in:
parent
d568b10ef8
commit
e8490692b3
@ -119,8 +119,8 @@ if command -v virsh > /dev/null; then
|
||||
fi
|
||||
|
||||
# Use ISO 8601 date & time.
|
||||
if command -v locale > /dev/null; then
|
||||
locale -a | grep -q en_DK && export LC_TIME="en_DK.utf8"
|
||||
if [[ "${LC_TIME}" != "en_DK.utf8" ]] && command -v locale > /dev/null; then
|
||||
[[ "$(locale --all-locales)" =~ "en_DK" ]] && export LC_TIME="en_DK.utf8"
|
||||
fi
|
||||
|
||||
export CCACHE_DIR="/var/cache/ccache"
|
||||
|
Loading…
x
Reference in New Issue
Block a user