Update skel to handle minimal environments.

This commit is contained in:
David Tomaschik
2018-05-07 22:25:17 -07:00
parent 01432d1f41
commit b1bea45a48
2 changed files with 33 additions and 17 deletions

View File

@@ -27,7 +27,8 @@ export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
export GPG_ID=7FD58D9A196DCEEEAD671F94F4D7A7915DEA789B export GPG_ID=7FD58D9A196DCEEEAD671F94F4D7A7915DEA789B
# Setup locale # Setup locale
for l in en_US.UTF-8 C ; do if test -f /usr/share/i18n/SUPPORTED ; then
for l in en_US.UTF-8 C ; do
if grep -q "${l}" /usr/share/i18n/SUPPORTED ; then if grep -q "${l}" /usr/share/i18n/SUPPORTED ; then
export LC_CTYPE=${l} export LC_CTYPE=${l}
export LC_NUMERIC=${l} export LC_NUMERIC=${l}
@@ -42,7 +43,20 @@ for l in en_US.UTF-8 C ; do
export LC_IDENTIFICATION=${l} export LC_IDENTIFICATION=${l}
break break
fi fi
done done
else
export LC_CTYPE=C
export LC_NUMERIC=C
export LC_TIME=C
export LC_MONETARY=C
export LC_MESSAGES=C
export LC_PAPER=C
export LC_NAME=C
export LC_ADDRESS=C
export LC_TELEPHONE=C
export LC_MEASUREMENT=C
export LC_IDENTIFICATION=C
fi
export LC_COLLATE=C export LC_COLLATE=C
if [[ -e $HOME/.localenv ]] ; then source $HOME/.localenv ; fi if [[ -e $HOME/.localenv ]] ; then source $HOME/.localenv ; fi

View File

@@ -51,7 +51,9 @@ function prompt_matir_setup {
function prompt_matir_precmd { function prompt_matir_precmd {
vcs_info vcs_info
if (( $+functions[python-info] )); then
python-info python-info
fi
} }
### git: Show marker (*) if there are untracked files in repository ### git: Show marker (*) if there are untracked files in repository