first commit
This commit is contained in:
commit
0610f4aeab
130 changed files with 9897 additions and 0 deletions
7
fn/-z4h-fix-locale
Normal file
7
fn/-z4h-fix-locale
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# Try in order: C.UTF-8, en_US.UTF-8, the first UTF-8 locale in lexicographical order.
|
||||
(( $+commands[locale] )) || return
|
||||
local loc=(${(@M)$(locale -a):#*.(utf|UTF)(-|)8})
|
||||
(( $#loc )) || return
|
||||
export LC_ALL=${loc[(r)(#i)C.UTF(-|)8]:-${loc[(r)(#i)en_US.UTF(-|)8]:-$loc[1]}}
|
Loading…
Add table
Add a link
Reference in a new issue