diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2024-02-03 13:44:10 +0000 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2024-02-03 13:44:10 +0000 |
| commit | 351889903f2124fd54d6b5f63853c1634fda998b (patch) | |
| tree | dff0dfc2dbed642186fce1eabe28530d8e84f351 /distro | |
| parent | 7756b8d908e41c05a7888eb459be92827ec96c26 (diff) | |
| download | dotfiles-351889903f2124fd54d6b5f63853c1634fda998b.tar.gz dotfiles-351889903f2124fd54d6b5f63853c1634fda998b.tar.xz | |
Set en_US.UTF-8 on NetBSD
Diffstat (limited to 'distro')
| -rwxr-xr-x | distro/netbsd.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/distro/netbsd.sh b/distro/netbsd.sh index e9c3d57..28b46c2 100755 --- a/distro/netbsd.sh +++ b/distro/netbsd.sh @@ -55,6 +55,23 @@ for pkg in dwm st dmenu ; do done +if ! [ -e ~/.profile.lang ] ; then +cat > ~/.profile.lang <<EOF +export LANG="en_US.UTF-8" +export LC_CTYPE="en_US.UTF-8" +export LC_COLLATE="C" +export LC_TIME="en_US.UTF-8" +export LC_NUMERIC="en_US.UTF-8" +export LC_MONETARY="en_US.UTF-8" +export LC_MESSAGES="en_US.UTF-8" +export LC_ALL="" +EOF +fi + +if ! grep -q '^. ~/.profile.lang' ~/.kshrc.local ; then + echo '. ~/.profile.lang' >> ~/.profile +fi + # Probably better ways of doing this... if ! grep -q '^export LD_LIBR' ~/.kshrc.local ; then cat >> ~/.kshrc.local <<EOF |
