Skip to content

Commit

Permalink
maint: improve logic for setting locale
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
  • Loading branch information
vladdoster committed Nov 2, 2022
1 parent dbffeab commit 5358acf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zsh/.zprofile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ path_append \
#
# unfunction _prepath
# unfunction _postpaths
# +────────+
# │ LOCALE │
# +────────+
(( $+commands[locale] )) && local loc=(${(@M)$(locale -a):#*.(utf|UTF)(-|)8})
(( $#loc )) && export LC_ALL=${loc[(r)(#i)C.UTF(-|)8]:-${loc[(r)(#i)en_US.UTF(-|)8]:-$loc[1]}}
# +──────────────+
# │ CONFIG PATHS │
# +──────────────+
Expand Down

0 comments on commit 5358acf

Please sign in to comment.