diff options
Diffstat (limited to 'skel')
| -rw-r--r-- | skel/.zprofile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/skel/.zprofile b/skel/.zprofile index ec97cef..f608c93 100644 --- a/skel/.zprofile +++ b/skel/.zprofile @@ -1,15 +1,17 @@ -LANG='en_US.UTF-8'; export LANG +export LANG='en_US.UTF-8' if [[ -x /usr/bin/locale ]]; then - if /usr/bin/locale -a | grep -q de_AT.utf8; then - LC_TIME='de_AT.UTF-8'; export LC_TIME - LC_MONETARY='de_AT.UTF-8'; export LC_MONETARY - elif locale -a | grep -q de_DE.utf8; then - LC_TIME='de_DE.UTF-8'; export LC_TIME - LC_MONETARY='de_DE.UTF-8'; export LC_MONETARY + local mylocale + mylocale=`/usr/bin/locale -a` + if [[ $mylocale =~ "de_AT.utf8" ]]; then + export LC_TIME='de_AT.UTF-8' + export LC_MONETARY='de_AT.UTF-8' + elif [[ $mylocale =~ "de_DE.utf8" ]]; then + export LC_TIME='de_DE.UTF-8' + export LC_MONETARY='de_DE.UTF-8' fi fi -LIBGL_DRI3_DISABLE=1; export LIBGL_DRI3_DISABLE +export LIBGL_DRI3_DISABLE=1 SSH_ENV="$HOME/.ssh/environment" @@ -19,7 +21,7 @@ function start_agent { chmod 600 "${SSH_ENV}" . "${SSH_ENV}" > /dev/null if [[ -x /usr/bin/ssh-add ]]; then - for key in $(find ${HOME}/.ssh/ -name 'id_*' | egrep -v '.pub$'); do + for key in $(find ${HOME}/.ssh/ -maxdepth 1 -name 'id_*' | egrep -v '.pub$'); do /usr/bin/ssh-add $key done fi |
