projects
/
dotfiles-public.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90645c5
)
.bashrc.d/02locale: force LANG=en_US.UTF-8 on xphy*s.
author
W. Trevor King
<wking@tremily.us>
Fri, 12 Oct 2012 18:05:36 +0000
(14:05 -0400)
committer
W. Trevor King
<wking@tremily.us>
Fri, 12 Oct 2012 18:05:39 +0000
(14:05 -0400)
It had been en_US, which causes warnings like
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US)
on bash tab-completion.
src/.bashrc.d/02locale
[new file with mode: 0644]
patch
|
blob
diff --git a/src/.bashrc.d/02locale
b/src/.bashrc.d/02locale
new file mode 100644
(file)
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