From: W. Trevor King Date: Fri, 12 Oct 2012 18:05:36 +0000 (-0400) Subject: .bashrc.d/02locale: force LANG=en_US.UTF-8 on xphy*s. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1b844005d69ff957af148a815ecc8c58368d9b3c;p=dotfiles-public.git .bashrc.d/02locale: force LANG=en_US.UTF-8 on xphy*s. It had been en_US, which causes warnings like bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US) on bash tab-completion. --- diff --git a/src/.bashrc.d/02locale b/src/.bashrc.d/02locale new file mode 100644 index 0000000..90aba95 --- /dev/null +++ b/src/.bashrc.d/02locale @@ -0,0 +1,6 @@ +if [[ "${OS}" = "Ubuntu" ]]; then + HOST="$(hostname)" + if [[ "${HOST:0:4}" = "xphy" ]]; then + export LANG="en_US.UTF-8" + fi +fi