mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Update skel to handle minimal environments.
This commit is contained in:
14
dotfiles/env
14
dotfiles/env
@@ -27,6 +27,7 @@ export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
|
||||
export GPG_ID=7FD58D9A196DCEEEAD671F94F4D7A7915DEA789B
|
||||
|
||||
# Setup locale
|
||||
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
|
||||
export LC_CTYPE=${l}
|
||||
@@ -43,6 +44,19 @@ for l in en_US.UTF-8 C ; do
|
||||
break
|
||||
fi
|
||||
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
|
||||
|
||||
if [[ -e $HOME/.localenv ]] ; then source $HOME/.localenv ; fi
|
||||
|
||||
@@ -51,7 +51,9 @@ function prompt_matir_setup {
|
||||
|
||||
function prompt_matir_precmd {
|
||||
vcs_info
|
||||
if (( $+functions[python-info] )); then
|
||||
python-info
|
||||
fi
|
||||
}
|
||||
|
||||
### git: Show marker (*) if there are untracked files in repository
|
||||
|
||||
Reference in New Issue
Block a user